module Draper::AutomaticDelegation::ClassMethods

def before_remove_const

Other tags:
    Private: -
def before_remove_const
end

def delegatable?(method)

Other tags:
    Private: -
def delegatable?(method)
  object_class? && object_class.respond_to?(method)
end

def method_missing(method, *args, &block)

Proxies missing class methods to the source class.
def method_missing(method, *args, &block)
unless delegatable?(method)
send(method, *args, &block)

def respond_to_missing?(method, include_private = false)

it to the source class.
Checks if the decorator responds to a class method, or is able to proxy
def respond_to_missing?(method, include_private = false)
  super || delegatable?(method)
end