Class: MarkdownExpander::Expander::Node
- Inherits:
-
Object
- Object
- MarkdownExpander::Expander::Node
- Defined in:
- lib/markdown-expander.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#element ⇒ Object
Returns the value of attribute element.
-
#line_number ⇒ Object
Returns the value of attribute line_number.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(parent, element, line_number) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(parent, element, line_number) ⇒ Node
Returns a new instance of Node.
131 132 133 134 135 136 |
# File 'lib/markdown-expander.rb', line 131 def initialize parent, element, line_number @parent = parent @element = element @line_number = line_number @children = [] end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
128 129 130 |
# File 'lib/markdown-expander.rb', line 128 def children @children end |
#element ⇒ Object
Returns the value of attribute element.
129 130 131 |
# File 'lib/markdown-expander.rb', line 129 def element @element end |
#line_number ⇒ Object
Returns the value of attribute line_number.
130 131 132 |
# File 'lib/markdown-expander.rb', line 130 def line_number @line_number end |
#parent ⇒ Object
Returns the value of attribute parent.
127 128 129 |
# File 'lib/markdown-expander.rb', line 127 def parent @parent end |