Sha256: 877016388d5db3ff78128d416c9096eb69eca2775a054959e9912d1317c81575
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
module Jei module Nodes # @see http://jsonapi.org/format/1.0/#document-resource-object-attributes class AttributeNode < Node # @param [Serializer] serializer # @param [Attribute] attribute def initialize(serializer, attribute) super() @serializer = serializer @attribute = attribute end # @param [Hash<Symbol, Object>] context def visit(context) context[@attribute.name] = @attribute.evaluate(@serializer) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jei-0.2.0 | lib/jei/nodes/attribute_node.rb |