Class: FastHaml::Ast::Root
- Inherits:
-
Struct
- Object
- Struct
- FastHaml::Ast::Root
- Includes:
- HasChildren
- Defined in:
- lib/fast_haml/ast.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#leading_empty_lines ⇒ Object
readonly
Returns the value of attribute leading_empty_lines.
Instance Method Summary collapse
-
#initialize ⇒ Root
constructor
A new instance of Root.
Methods included from HasChildren
Constructor Details
#initialize ⇒ Root
Returns a new instance of Root.
18 19 20 21 |
# File 'lib/fast_haml/ast.rb', line 18 def initialize(*) super @leading_empty_lines = 0 end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
14 15 16 |
# File 'lib/fast_haml/ast.rb', line 14 def children @children end |
#leading_empty_lines ⇒ Object (readonly)
Returns the value of attribute leading_empty_lines.
16 17 18 |
# File 'lib/fast_haml/ast.rb', line 16 def leading_empty_lines @leading_empty_lines end |