Module: FastHaml::Ast::HasChildren
- Included in:
- Element, HamlComment, HtmlComment, Root, Script, SilentScript
- Defined in:
- lib/fast_haml/ast.rb
Instance Method Summary collapse
Instance Method Details
#<<(ast) ⇒ Object
9 10 11 |
# File 'lib/fast_haml/ast.rb', line 9 def <<(ast) self.children << ast end |
#initialize ⇒ Object
4 5 6 7 |
# File 'lib/fast_haml/ast.rb', line 4 def initialize(*) super self.children ||= [] end |