Class: FastHaml::Ast::Text
- Inherits:
-
Struct
- Object
- Struct
- FastHaml::Ast::Text
- Defined in:
- lib/fast_haml/ast.rb
Instance Attribute Summary collapse
-
#escape_html ⇒ Object
Returns the value of attribute escape_html.
-
#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.
94 95 96 97 98 99 |
# File 'lib/fast_haml/ast.rb', line 94 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
93 94 95 |
# File 'lib/fast_haml/ast.rb', line 93 def escape_html @escape_html end |
#text ⇒ Object
Returns the value of attribute text
93 94 95 |
# File 'lib/fast_haml/ast.rb', line 93 def text @text end |