Class: Solid::Parser::LiteralHash

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

Instance Attribute Summary

Attributes inherited from Literal

#value

Instance Method Summary collapse

Instance Method Details

#evaluate(context) ⇒ Object



41
42
43
# File 'lib/solid/parser.rb', line 41

def evaluate(context)
  Hash[value.map{ |k, v| [k.evaluate(context), v.evaluate(context)] }]
end