Class: FastHaml::Ast::Text

Inherits:
Struct
  • Object
show all
Defined in:
lib/fast_haml/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeText

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_htmlObject

Returns the value of attribute escape_html

Returns:

  • (Object)

    the current value of escape_html



93
94
95
# File 'lib/fast_haml/ast.rb', line 93

def escape_html
  @escape_html
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



93
94
95
# File 'lib/fast_haml/ast.rb', line 93

def text
  @text
end