Class: Gelatin::Node
- Inherits:
-
Object
- Object
- Gelatin::Node
- Defined in:
- lib/gelatin/node.rb
Overview
Node is a PORO
Instance Attribute Summary collapse
-
#addr ⇒ Object
Returns the value of attribute addr.
Instance Method Summary collapse
-
#initialize(addr) ⇒ Node
constructor
A new instance of Node.
- #to_s ⇒ Object
Constructor Details
#initialize(addr) ⇒ Node
Returns a new instance of Node.
6 7 8 |
# File 'lib/gelatin/node.rb', line 6 def initialize(addr) @addr = addr end |
Instance Attribute Details
#addr ⇒ Object
Returns the value of attribute addr.
4 5 6 |
# File 'lib/gelatin/node.rb', line 4 def addr @addr end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/gelatin/node.rb', line 10 def to_s @addr end |