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.



100
101
102
103
104
105
# File 'lib/fast_haml/ast.rb', line 100

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



99
100
101
# File 'lib/fast_haml/ast.rb', line 99

def escape_html
  @escape_html
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



99
100
101
# File 'lib/fast_haml/ast.rb', line 99

def text
  @text
end