Class: Faml::Ast::Text
- Inherits:
-
Struct
- Object
- Struct
- Faml::Ast::Text
- Defined in:
- lib/faml/ast.rb
Instance Attribute Summary collapse
-
#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.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize ⇒ Text
constructor
A new instance of Text.
Constructor Details
#initialize ⇒ Text
Returns a new instance of Text.
98 99 100 101 102 103 |
# File 'lib/faml/ast.rb', line 98 def initialize(*) super if self.escape_html.nil? self.escape_html = true end end |
Instance Attribute Details
#escape_html ⇒ Object
Returns the value of attribute escape_html
97 98 99 |
# File 'lib/faml/ast.rb', line 97 def escape_html @escape_html end |
#filename ⇒ Object
Returns the value of attribute filename
97 98 99 |
# File 'lib/faml/ast.rb', line 97 def filename @filename end |
#lineno ⇒ Object
Returns the value of attribute lineno
97 98 99 |
# File 'lib/faml/ast.rb', line 97 def lineno @lineno end |
#text ⇒ Object
Returns the value of attribute text
97 98 99 |
# File 'lib/faml/ast.rb', line 97 def text @text end |