Class: FastHaml::Ast::Script
- Inherits:
-
Struct
- Object
- Struct
- FastHaml::Ast::Script
- Includes:
- HasChildren
- Defined in:
- lib/fast_haml/ast.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#escape_html ⇒ Object
Returns the value of attribute escape_html.
-
#mid_block_keyword ⇒ Object
Returns the value of attribute mid_block_keyword.
-
#preserve ⇒ Object
Returns the value of attribute preserve.
-
#script ⇒ Object
Returns the value of attribute script.
Instance Method Summary collapse
-
#initialize ⇒ Script
constructor
A new instance of Script.
Methods included from HasChildren
Constructor Details
#initialize ⇒ Script
Returns a new instance of Script.
54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/fast_haml/ast.rb', line 54 def initialize(*) super if self.escape_html.nil? self.escape_html = true end if self.preserve.nil? self.preserve = false end if self.mid_block_keyword.nil? self.mid_block_keyword = false end end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
45 46 47 |
# File 'lib/fast_haml/ast.rb', line 45 def children @children end |
#escape_html ⇒ Object
Returns the value of attribute escape_html
45 46 47 |
# File 'lib/fast_haml/ast.rb', line 45 def escape_html @escape_html end |
#mid_block_keyword ⇒ Object
Returns the value of attribute mid_block_keyword
45 46 47 |
# File 'lib/fast_haml/ast.rb', line 45 def mid_block_keyword @mid_block_keyword end |
#preserve ⇒ Object
Returns the value of attribute preserve
45 46 47 |
# File 'lib/fast_haml/ast.rb', line 45 def preserve @preserve end |
#script ⇒ Object
Returns the value of attribute script
45 46 47 |
# File 'lib/fast_haml/ast.rb', line 45 def script @script end |