Class: MarkdownExpander::Expander::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/markdown-expander.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#childrenObject

Returns the value of attribute children.



84
85
86
# File 'lib/markdown-expander.rb', line 84

def children
  @children
end

#elementObject

Returns the value of attribute element.



85
86
87
# File 'lib/markdown-expander.rb', line 85

def element
  @element
end

#parentObject

Returns the value of attribute parent.



83
84
85
# File 'lib/markdown-expander.rb', line 83

def parent
  @parent
end