Class: Foo
- Inherits:
-
Object
- Object
- Foo
- Includes:
- HomeQ::Poolable
- Defined in:
- lib/homeq/base/poolable.rb
Instance Attribute Summary collapse
-
#x ⇒ Object
Returns the value of attribute x.
Instance Method Summary collapse
- #deinitialize ⇒ Object
-
#initialize(x) ⇒ Foo
(also: #reinitialize)
constructor
A new instance of Foo.
Methods included from HomeQ::Poolable
Constructor Details
#initialize(x) ⇒ Foo Also known as: reinitialize
Returns a new instance of Foo.
74 75 76 |
# File 'lib/homeq/base/poolable.rb', line 74 def initialize(x) @x = x end |
Instance Attribute Details
#x ⇒ Object
Returns the value of attribute x.
73 74 75 |
# File 'lib/homeq/base/poolable.rb', line 73 def x @x end |
Instance Method Details
#deinitialize ⇒ Object
78 79 80 81 82 |
# File 'lib/homeq/base/poolable.rb', line 78 def deinitialize instance_variables.each {|v| eval "#{v} = nil" } end |