Class: CallIfAvailable

Inherits:
BlankSlate show all
Defined in:
lib/hobosupport/methodcall.rb

Instance Method Summary collapse

Methods inherited from BlankSlate

#initialize

Constructor Details

This class inherits a constructor from BlankSlate

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &b) ⇒ Object



55
56
57
# File 'lib/hobosupport/methodcall.rb', line 55

def method_missing(name, *args, &b)
  @me.send(name, *args, &b) if @me.respond_to?(name)
end