Class: Haml::Parser::ParseNode
- Inherits:
-
Struct
- Object
- Struct
- Haml::Parser::ParseNode
- Defined in:
- lib/haml/parser.rb
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.
219 220 221 222 |
# File 'lib/haml/parser.rb', line 219 def initialize(*args) super self.children ||= [] end |
Instance Method Details
#inspect ⇒ Object
224 225 226 |
# File 'lib/haml/parser.rb', line 224 def inspect %Q[(#{type} #{value.inspect}#{children.each_with_object(''.dup) {|c, s| s << "\n#{c.inspect.gsub!(/^/, ' ')}"}})].dup end |