module Casting::MissingMethodClientClass::InstanceMethods

Private Instance Methods

__class_delegates__() click to toggle source
# File lib/casting/missing_method_client_class.rb, line 10
def __class_delegates__
  self.class.__delegates__
end
method_class_delegate(meth) click to toggle source
# File lib/casting/missing_method_client_class.rb, line 27
def method_class_delegate(meth)
  __class_delegates__.find { |attendant|
    attendant.method_defined?(meth)
  }
end
method_missing(meth, *args, &block) click to toggle source
Calls superclass method
# File lib/casting/missing_method_client_class.rb, line 14
def method_missing(meth, *args, &block)
  attendant = method_class_delegate(meth)
  if !!attendant
    cast(meth, attendant, *args, &block)
  else
    super
  end
end
respond_to_missing?(meth, *) click to toggle source
Calls superclass method
# File lib/casting/missing_method_client_class.rb, line 23
def respond_to_missing?(meth, *)
  !!method_class_delegate(meth) || super
end