Sha256: d5022c0104eb6b193a8d6ba231610cd122a839598975c4b4eb8b75c89a8a16c1

Contents?: true

Size: 505 Bytes

Versions: 6

Compression:

Stored size: 505 Bytes

Contents

require "dry-container"
require "kanji/graph/register_object"
require "kanji/graph/register_mutation"
require "kanji/graph/query"
require "kanji/graph/schema"

module Kanji
  class Graph
    class Container
      extend Dry::Container::Mixin

      register :register_object, -> (params) { RegisterObject.new(params) }
      register :register_mutation, -> (params) { RegisterMutation.new(params) }
      register :query, Kanji::Graph::Query
      register :schema, Kanji::Graph::Schema
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kanji-web-0.3.1 lib/kanji/graph/container.rb
kanji-web-0.3.0 lib/kanji/graph/container.rb
kanji-web-0.2.2 lib/kanji/graph/container.rb
kanji-web-0.2.1 lib/kanji/graph/container.rb
kanji-web-0.2.0 lib/kanji/graph/container.rb
kanji-web-0.1.0 lib/kanji/graph/container.rb