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



6
7
8
# File 'lib/solid/parser.rb', line 6

def name
  @name
end

Instance Method Details

#evaluate(context) ⇒ Object



7
8
9
# File 'lib/solid/parser.rb', line 7

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