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.
60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/fast_haml/ast.rb', line 60 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
51 52 53 |
# File 'lib/fast_haml/ast.rb', line 51 def children @children end |
#escape_html ⇒ Object
Returns the value of attribute escape_html
51 52 53 |
# File 'lib/fast_haml/ast.rb', line 51 def escape_html @escape_html end |
#mid_block_keyword ⇒ Object
Returns the value of attribute mid_block_keyword
51 52 53 |
# File 'lib/fast_haml/ast.rb', line 51 def mid_block_keyword @mid_block_keyword end |
#preserve ⇒ Object
Returns the value of attribute preserve
51 52 53 |
# File 'lib/fast_haml/ast.rb', line 51 def preserve @preserve end |
#script ⇒ Object
Returns the value of attribute script
51 52 53 |
# File 'lib/fast_haml/ast.rb', line 51 def script @script end |