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



31
32
33
# File 'lib/solid/parser.rb', line 31

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