Class: Pond::Wrapper
- Inherits:
- BasicObject
- Defined in:
- lib/pond.rb
Instance Attribute Summary collapse
-
#pond ⇒ Object
readonly
Returns the value of attribute pond.
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ Wrapper
constructor
A new instance of Wrapper.
- #method_missing(*args, &block) ⇒ Object
Constructor Details
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
#pond ⇒ Object (readonly)
Returns the value of attribute pond.
157 158 159 |
# File 'lib/pond.rb', line 157 def pond @pond end |