Class: Gitlab::TemplateParser::AST::Variable
- Inherits:
-
Struct
- Object
- Struct
- Gitlab::TemplateParser::AST::Variable
- Defined in:
- lib/gitlab/template_parser/ast.rb
Overview
A tag used for displaying a value in the output.
Instance Attribute Summary collapse
-
#selector ⇒ Object
Returns the value of attribute selector.
Instance Method Summary collapse
Instance Attribute Details
#selector ⇒ Object
Returns the value of attribute selector
70 71 72 |
# File 'lib/gitlab/template_parser/ast.rb', line 70 def selector @selector end |
Instance Method Details
#evaluate(state, data) ⇒ Object
71 72 73 |
# File 'lib/gitlab/template_parser/ast.rb', line 71 def evaluate(state, data) selector.evaluate(state, data).to_s end |