Class: MarkdownExpander::Expander::Node
- Inherits:
-
Object
- Object
- MarkdownExpander::Expander::Node
- Defined in:
- lib/markdown_expander/expander.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(parent, value) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(parent, value) ⇒ Node
Returns a new instance of Node.
63 64 65 66 67 |
# File 'lib/markdown_expander/expander.rb', line 63 def initialize parent, value @parent = parent @value = value @children = [] end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
61 62 63 |
# File 'lib/markdown_expander/expander.rb', line 61 def children @children end |
#parent ⇒ Object
Returns the value of attribute parent.
60 61 62 |
# File 'lib/markdown_expander/expander.rb', line 60 def parent @parent end |
#value ⇒ Object
Returns the value of attribute value.
62 63 64 |
# File 'lib/markdown_expander/expander.rb', line 62 def value @value end |