Class: EZML::Parser::ParseNode
Instance Method Summary collapse
-
#initialize(*args) ⇒ ParseNode
constructor
A new instance of ParseNode.
- #inspect ⇒ Object
Constructor Details
#initialize(*args) ⇒ ParseNode
Returns a new instance of ParseNode.
198 199 200 201 |
# File 'lib/ezml/parser.rb', line 198 def initialize(*args) super self.children ||= [] end |
Instance Method Details
#inspect ⇒ Object
203 204 205 |
# File 'lib/ezml/parser.rb', line 203 def inspect %Q[(#{type} #{value.inspect}#{children.each_with_object('') {|c, s| s << "\n#{c.inspect.gsub!(/^/, ' ')}"}})] end |