module Draper::AutomaticDelegation::ClassMethods
def before_remove_const
- Private: -
def before_remove_const end
def delegatable?(method)
- Private: -
def delegatable?(method) object_class? && object_class.respond_to?(method) end
def method_missing(method, *args, &block)
def method_missing(method, *args, &block) unless delegatable?(method) send(method, *args, &block)
def respond_to_missing?(method, include_private = false)
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