Module: Casting::MissingMethodClient

Defined in:
lib/casting.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object



49
50
51
52
53
54
55
# File 'lib/casting.rb', line 49

def method_missing(meth, *args, &block)
  if delegate_has_method?(meth)
    delegate(meth, @__current_delegate__, *args, &block)
  else
    super
  end
end