Class: Faml::Ast::HtmlComment
- Inherits:
-
Struct
- Object
- Struct
- Faml::Ast::HtmlComment
- Includes:
- HasChildren
- Defined in:
- lib/faml/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.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#lineno ⇒ Object
Returns the value of attribute lineno.
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.
86 87 88 89 90 |
# File 'lib/faml/ast.rb', line 86 def initialize(*) super self.comment ||= '' self.conditional ||= '' end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
83 84 85 |
# File 'lib/faml/ast.rb', line 83 def children @children end |
#comment ⇒ Object
Returns the value of attribute comment
83 84 85 |
# File 'lib/faml/ast.rb', line 83 def comment @comment end |
#conditional ⇒ Object
Returns the value of attribute conditional
83 84 85 |
# File 'lib/faml/ast.rb', line 83 def conditional @conditional end |
#filename ⇒ Object
Returns the value of attribute filename
83 84 85 |
# File 'lib/faml/ast.rb', line 83 def filename @filename end |
#lineno ⇒ Object
Returns the value of attribute lineno
83 84 85 |
# File 'lib/faml/ast.rb', line 83 def lineno @lineno end |