Class: FastHaml::Ast::HtmlComment
- Inherits:
-
Struct
- Object
- Struct
- FastHaml::Ast::HtmlComment
- Includes:
- HasChildren
- Defined in:
- lib/fast_haml/ast.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#conditional ⇒ Object
Returns the value of attribute conditional.
Instance Method Summary collapse
-
#initialize ⇒ HtmlComment
constructor
A new instance of HtmlComment.
Methods included from HasChildren
Constructor Details
#initialize ⇒ HtmlComment
Returns a new instance of HtmlComment.
82 83 84 85 86 |
# File 'lib/fast_haml/ast.rb', line 82 def initialize(*) super self.comment ||= '' self.conditional ||= '' end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
79 80 81 |
# File 'lib/fast_haml/ast.rb', line 79 def children @children end |
#comment ⇒ Object
Returns the value of attribute comment
79 80 81 |
# File 'lib/fast_haml/ast.rb', line 79 def comment @comment end |
#conditional ⇒ Object
Returns the value of attribute conditional
79 80 81 |
# File 'lib/fast_haml/ast.rb', line 79 def conditional @conditional end |