Class: Faml::Ast::Text

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeText

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_htmlObject

Returns the value of attribute escape_html

Returns:

  • (Object)

    the current value of escape_html



97
98
99
# File 'lib/faml/ast.rb', line 97

def escape_html
  @escape_html
end

#filenameObject

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



97
98
99
# File 'lib/faml/ast.rb', line 97

def filename
  @filename
end

#linenoObject

Returns the value of attribute lineno

Returns:

  • (Object)

    the current value of lineno



97
98
99
# File 'lib/faml/ast.rb', line 97

def lineno
  @lineno
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



97
98
99
# File 'lib/faml/ast.rb', line 97

def text
  @text
end