Class: Specdown::Node
- Inherits:
-
Object
- Object
- Specdown::Node
- Defined in:
- lib/specdown/node.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#code ⇒ Object
Returns the value of attribute code.
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#undefined_implicits ⇒ Object
Returns the value of attribute undefined_implicits.
Instance Method Summary collapse
-
#initialize ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize ⇒ Node
Returns a new instance of Node.
5 6 7 8 9 10 |
# File 'lib/specdown/node.rb', line 5 def initialize @code = '' @contents = '' @children = [] @undefined_implicits = [] end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
3 4 5 |
# File 'lib/specdown/node.rb', line 3 def children @children end |
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/specdown/node.rb', line 3 def code @code end |
#contents ⇒ Object
Returns the value of attribute contents.
3 4 5 |
# File 'lib/specdown/node.rb', line 3 def contents @contents end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/specdown/node.rb', line 3 def name @name end |
#parent ⇒ Object
Returns the value of attribute parent.
3 4 5 |
# File 'lib/specdown/node.rb', line 3 def parent @parent end |
#undefined_implicits ⇒ Object
Returns the value of attribute undefined_implicits.
3 4 5 |
# File 'lib/specdown/node.rb', line 3 def undefined_implicits @undefined_implicits end |