Class: Specdown::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/specdown/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNode

Returns a new instance of Node.



5
6
7
8
9
10
# File 'lib/specdown/node.rb', line 5

def initialize
  @code = ''
  @contents = ''
  @children = []
  @undefined_implicits = []
end

Instance Attribute Details

#childrenObject

Returns the value of attribute children.



3
4
5
# File 'lib/specdown/node.rb', line 3

def children
  @children
end

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/specdown/node.rb', line 3

def code
  @code
end

#contentsObject

Returns the value of attribute contents.



3
4
5
# File 'lib/specdown/node.rb', line 3

def contents
  @contents
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/specdown/node.rb', line 3

def name
  @name
end

#parentObject

Returns the value of attribute parent.



3
4
5
# File 'lib/specdown/node.rb', line 3

def parent
  @parent
end

#undefined_implicitsObject

Returns the value of attribute undefined_implicits.



3
4
5
# File 'lib/specdown/node.rb', line 3

def undefined_implicits
  @undefined_implicits
end