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.
88 89 90 91 92 |
# File 'lib/fast_haml/ast.rb', line 88 def initialize(*) super self.comment ||= '' self.conditional ||= '' end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
85 86 87 |
# File 'lib/fast_haml/ast.rb', line 85 def children @children end |
#comment ⇒ Object
Returns the value of attribute comment
85 86 87 |
# File 'lib/fast_haml/ast.rb', line 85 def comment @comment end |
#conditional ⇒ Object
Returns the value of attribute conditional
85 86 87 |
# File 'lib/fast_haml/ast.rb', line 85 def conditional @conditional end |