Class: UCD::Node::Base
- Inherits:
-
Object
- Object
- UCD::Node::Base
- Includes:
- HasAttributes
- Defined in:
- lib/ucd/node/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from HasAttributes
Constructor Details
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
9 10 11 |
# File 'lib/ucd/node/base.rb', line 9 def initialize(attributes={}) update_attributes(attributes) end |
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
13 14 15 |
# File 'lib/ucd/node/base.rb', line 13 def parent @parent end |