Class: Sablon::Expression::Variable
- Inherits:
-
Struct
- Object
- Struct
- Sablon::Expression::Variable
- Defined in:
- lib/sablon/operations.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
157 158 159 |
# File 'lib/sablon/operations.rb', line 157 def name @name end |
Instance Method Details
#evaluate(context) ⇒ Object
158 159 160 |
# File 'lib/sablon/operations.rb', line 158 def evaluate(context) context[name] end |
#inspect ⇒ Object
162 163 164 |
# File 'lib/sablon/operations.rb', line 162 def inspect "«#{name}»" end |