Class: Pond::Wrapper

Inherits:
BasicObject
Defined in:
lib/pond.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args, &block) ⇒ Wrapper

Returns a new instance of Wrapper.



159
160
161
# File 'lib/pond.rb', line 159

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



163
164
165
# File 'lib/pond.rb', line 163

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

Instance Attribute Details

#pondObject (readonly)

Returns the value of attribute pond.



157
158
159
# File 'lib/pond.rb', line 157

def pond
  @pond
end