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, 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

#childrenObject

Returns the value of attribute children.



128
129
130
# File 'lib/markdown-expander.rb', line 128

def children
  @children
end

#elementObject

Returns the value of attribute element.



129
130
131
# File 'lib/markdown-expander.rb', line 129

def element
  @element
end

#line_numberObject

Returns the value of attribute line_number.



130
131
132
# File 'lib/markdown-expander.rb', line 130

def line_number
  @line_number
end

#parentObject

Returns the value of attribute parent.



127
128
129
# File 'lib/markdown-expander.rb', line 127

def parent
  @parent
end