Class: HamlParser::Ast::SilentScript
- Inherits:
-
Struct
- Object
- Struct
- HamlParser::Ast::SilentScript
- Includes:
- HasChildren
- Defined in:
- lib/haml_parser/ast.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#lineno ⇒ Object
Returns the value of attribute lineno.
-
#mid_block_keyword ⇒ Object
Returns the value of attribute mid_block_keyword.
-
#script ⇒ Object
Returns the value of attribute script.
Instance Method Summary collapse
-
#initialize ⇒ SilentScript
constructor
A new instance of SilentScript.
- #to_h ⇒ Object
Methods included from HasChildren
Constructor Details
#initialize ⇒ SilentScript
Returns a new instance of SilentScript.
93 94 95 96 97 98 |
# File 'lib/haml_parser/ast.rb', line 93 def initialize(*) super if mid_block_keyword.nil? self.mid_block_keyword = false end end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
90 91 92 |
# File 'lib/haml_parser/ast.rb', line 90 def children @children end |
#filename ⇒ Object
Returns the value of attribute filename
90 91 92 |
# File 'lib/haml_parser/ast.rb', line 90 def filename @filename end |
#lineno ⇒ Object
Returns the value of attribute lineno
90 91 92 |
# File 'lib/haml_parser/ast.rb', line 90 def lineno @lineno end |
#mid_block_keyword ⇒ Object
Returns the value of attribute mid_block_keyword
90 91 92 |
# File 'lib/haml_parser/ast.rb', line 90 def mid_block_keyword @mid_block_keyword end |
#script ⇒ Object
Returns the value of attribute script
90 91 92 |
# File 'lib/haml_parser/ast.rb', line 90 def script @script end |
Instance Method Details
#to_h ⇒ Object
100 101 102 |
# File 'lib/haml_parser/ast.rb', line 100 def to_h super.merge(type: 'silent_script') end |