Class: Pond::Wrapper

Inherits:
BasicObject
Defined in:
lib/pond.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, &block) ⇒ Wrapper



146
147
148
# File 'lib/pond.rb', line 146

def initialize(*args, &block)
  @pond = ::Pond.new(*args, &block)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



150
151
152
# File 'lib/pond.rb', line 150

def method_missing(*args, &block)
  @pond.checkout { |object| object.send(*args, &block) }
end

Instance Attribute Details

#pondObject (readonly)

Returns the value of attribute pond.



144
145
146
# File 'lib/pond.rb', line 144

def pond
  @pond
end