Class: Faml::Ast::Script
- Inherits:
-
Struct
- Object
- Struct
- Faml::Ast::Script
- Includes:
- HasChildren
- Defined in:
- lib/faml/ast.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#escape_html ⇒ Object
Returns the value of attribute escape_html.
-
#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.
-
#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.
58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/faml/ast.rb', line 58 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
47 48 49 |
# File 'lib/faml/ast.rb', line 47 def children @children end |
#escape_html ⇒ Object
Returns the value of attribute escape_html
47 48 49 |
# File 'lib/faml/ast.rb', line 47 def escape_html @escape_html end |
#filename ⇒ Object
Returns the value of attribute filename
47 48 49 |
# File 'lib/faml/ast.rb', line 47 def filename @filename end |
#lineno ⇒ Object
Returns the value of attribute lineno
47 48 49 |
# File 'lib/faml/ast.rb', line 47 def lineno @lineno end |
#mid_block_keyword ⇒ Object
Returns the value of attribute mid_block_keyword
47 48 49 |
# File 'lib/faml/ast.rb', line 47 def mid_block_keyword @mid_block_keyword end |
#preserve ⇒ Object
Returns the value of attribute preserve
47 48 49 |
# File 'lib/faml/ast.rb', line 47 def preserve @preserve end |
#script ⇒ Object
Returns the value of attribute script
47 48 49 |
# File 'lib/faml/ast.rb', line 47 def script @script end |