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.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(parent, element) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(parent, element) ⇒ Node
Returns a new instance of Node.
86 87 88 89 90 |
# File 'lib/markdown-expander.rb', line 86 def initialize parent, element @parent = parent @element = element @children = [] end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
84 85 86 |
# File 'lib/markdown-expander.rb', line 84 def children @children end |
#element ⇒ Object
Returns the value of attribute element.
85 86 87 |
# File 'lib/markdown-expander.rb', line 85 def element @element end |
#parent ⇒ Object
Returns the value of attribute parent.
83 84 85 |
# File 'lib/markdown-expander.rb', line 83 def parent @parent end |