Class: Raml::Node
- Inherits:
-
Object
- Object
- Raml::Node
- Defined in:
- lib/raml/node.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parent ⇒ Raml::Node
The node’s parent.
Instance Method Summary collapse
-
#initialize(name, parent) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(name, parent) ⇒ Node
Returns a new instance of Node.
14 15 16 17 |
# File 'lib/raml/node.rb', line 14 def initialize(name, parent) @name = name @parent = parent end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/raml/node.rb', line 9 def name @name end |
#parent ⇒ Raml::Node
Returns the node’s parent.
12 13 14 |
# File 'lib/raml/node.rb', line 12 def parent @parent end |