Class: Solid::Parser::Literal

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

Direct Known Subclasses

LiteralArray, LiteralHash

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



12
13
14
# File 'lib/solid/parser.rb', line 12

def value
  @value
end

Instance Method Details

#evaluate(context) ⇒ Object



13
14
15
# File 'lib/solid/parser.rb', line 13

def evaluate(context)
  Solid.to_liquid(value, context)
end