Class: DMark::Nodes::Node

Inherits:
Object
  • Object
show all
Defined in:
lib/dmark/nodes.rb

Direct Known Subclasses

ElementNode, RootNode, TextNode

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNode

Returns a new instance of Node.



6
7
8
# File 'lib/dmark/nodes.rb', line 6

def initialize
  @children = []
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children.



4
5
6
# File 'lib/dmark/nodes.rb', line 4

def children
  @children
end

Instance Method Details

#inspect(_indent = 0) ⇒ Object



10
11
12
# File 'lib/dmark/nodes.rb', line 10

def inspect(_indent = 0)
  'Node()'
end