Class: Gitlab::TemplateParser::AST::Text

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

Overview

A single text node.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



84
85
86
# File 'lib/gitlab/template_parser/ast.rb', line 84

def text
  @text
end

Instance Method Details

#evaluateObject



85
86
87
# File 'lib/gitlab/template_parser/ast.rb', line 85

def evaluate(*)
  text
end