Class: HamlParser::Ast::Filter
- Inherits:
-
Struct
- Object
- Struct
- HamlParser::Ast::Filter
- Defined in:
- lib/haml_parser/ast.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#lineno ⇒ Object
Returns the value of attribute lineno.
-
#name ⇒ Object
Returns the value of attribute name.
-
#texts ⇒ Object
Returns the value of attribute texts.
Instance Method Summary collapse
-
#initialize ⇒ Filter
constructor
A new instance of Filter.
- #to_h ⇒ Object
Constructor Details
#initialize ⇒ Filter
Returns a new instance of Filter.
141 142 143 144 |
# File 'lib/haml_parser/ast.rb', line 141 def initialize(*) super self.texts ||= [] end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename
140 141 142 |
# File 'lib/haml_parser/ast.rb', line 140 def filename @filename end |
#lineno ⇒ Object
Returns the value of attribute lineno
140 141 142 |
# File 'lib/haml_parser/ast.rb', line 140 def lineno @lineno end |
#name ⇒ Object
Returns the value of attribute name
140 141 142 |
# File 'lib/haml_parser/ast.rb', line 140 def name @name end |
#texts ⇒ Object
Returns the value of attribute texts
140 141 142 |
# File 'lib/haml_parser/ast.rb', line 140 def texts @texts end |
Instance Method Details
#to_h ⇒ Object
146 147 148 |
# File 'lib/haml_parser/ast.rb', line 146 def to_h super.merge(type: 'filter') end |