Class: BoPeep::Host::Callbacks::Proxy

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/bopeep.rb

Instance Method Summary collapse

Constructor Details

#initialize(callbacks) ⇒ Proxy

Returns a new instance of Proxy.



949
950
951
# File 'lib/bopeep.rb', line 949

def initialize(callbacks)
  @callbacks = callbacks
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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



953
954
955
956
957
958
959
# File 'lib/bopeep.rb', line 953

def method_missing(name, *args, &block)
  if @callbacks.respond_to?(name)
    @callbacks.send(name, *args, &block)
  else
    super
  end
end