class DMark::Parser::ElementNode
Attributes
attributes[R]
children[R]
name[R]
Public Class Methods
new(name, attributes, children)
click to toggle source
# File lib/d-mark/parser.rb, line 21 def initialize(name, attributes, children) @name = name @attributes = attributes @children = children end
Public Instance Methods
==(other)
click to toggle source
# File lib/d-mark/parser.rb, line 39 def ==(other) case other when ElementNode @name == other.name && @children == other.children && @attributes == other.attributes else false end end
inspect()
click to toggle source
# File lib/d-mark/parser.rb, line 27 def inspect io = '' io << 'Element(' << @name << ', ' if @attributes.any? io << @attributes.inspect io << ', ' end io << @children.inspect io << ')' io end