Class: Solid::Parser::ContextVariable

Inherits:
Struct
  • Object
show all
Defined in:
lib/solid/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



16
17
18
# File 'lib/solid/parser.rb', line 16

def name
  @name
end

Instance Method Details

#evaluate(context) ⇒ Object



17
18
19
# File 'lib/solid/parser.rb', line 17

def evaluate(context)
  Solid.to_liquid(context[name], context)
end