module CaptainHoog::Delegatable::InstanceMethods
Public Instance Methods
method_missing(method_name, *args, &block)
click to toggle source
Calls superclass method
# File lib/captain_hoog/delegatable.rb, line 20 def method_missing(method_name, *args, &block) if delegate_to.respond_to?(method_name) delegate_to.send(method_name, *args, &block) else super end end
respond_to_missing?(method_name, include_private=false)
click to toggle source
Calls superclass method
# File lib/captain_hoog/delegatable.rb, line 28 def respond_to_missing?(method_name, include_private=false) delegate_to.respond_to?(method_name) || super end