Sha256: 9368c11978eaf57acf733232d0c4eeccd2954a4390dcb0e6be6c4dabcbc52446

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

module Jei
  module Nodes
    # @see http://jsonapi.org/format/1.0/#document-links
    class LinksNode < Node
      # @param [Hash<Symbol, Object>] context
      def visit(context)
        data = {}
        children.each { |child| child.visit(data) }
        context[:links] = data
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jei-0.2.0 lib/jei/nodes/links_node.rb