Sha256: 540cce4a8695133ec37782346e60fa916d2e93cbb3518abfbf611cbd195a2ea9

Contents?: true

Size: 363 Bytes

Versions: 6

Compression:

Stored size: 363 Bytes

Contents

require "dry-struct"
require "kanji/types"

module Kanji
  class Type
    class Attribute < Dry::Struct
      attribute :name, Kanji::Types::String
      attribute :type, Kanji::Types::Class
      attribute :description, Kanji::Types::String
      attribute :options, Kanji::Types::Hash
      attribute :resolve, Kanji::Types::Callable.optional
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kanji-web-0.3.1 lib/kanji/type/attribute.rb
kanji-web-0.3.0 lib/kanji/type/attribute.rb
kanji-web-0.2.2 lib/kanji/type/attribute.rb
kanji-web-0.2.1 lib/kanji/type/attribute.rb
kanji-web-0.2.0 lib/kanji/type/attribute.rb
kanji-web-0.1.0 lib/kanji/type/attribute.rb