Sha256: 0ffc041f4faf5b05923a6fb642358559fdfbd84a97b6bb80cc439021b0d31fbb

Contents?: true

Size: 488 Bytes

Versions: 77

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  module Define
    # @api deprecated
    module AssignEnumValue
      def self.call(enum_type, name, desc = nil, deprecation_reason: nil, value: name, &block)
        enum_value = GraphQL::EnumType::EnumValue.define(
          name: name.to_s,
          description: desc,
          deprecation_reason: deprecation_reason,
          value: value,
          &block
        )
        enum_type.add_value(enum_value)
      end
    end
  end
end

Version data entries

77 entries across 77 versions & 2 rubygems

Version Path
graphql-1.13.23 lib/graphql/define/assign_enum_value.rb
graphql-1.13.22 lib/graphql/define/assign_enum_value.rb
graphql-1.13.21 lib/graphql/define/assign_enum_value.rb
graphql-1.13.20 lib/graphql/define/assign_enum_value.rb
graphql-1.13.19 lib/graphql/define/assign_enum_value.rb
graphql-1.13.18 lib/graphql/define/assign_enum_value.rb
graphql-1.13.17 lib/graphql/define/assign_enum_value.rb
graphql-1.13.16 lib/graphql/define/assign_enum_value.rb
graphql-1.13.15 lib/graphql/define/assign_enum_value.rb
graphql-1.13.14 lib/graphql/define/assign_enum_value.rb
graphql-1.13.13 lib/graphql/define/assign_enum_value.rb
graphql_cody-1.13.0 lib/graphql/define/assign_enum_value.rb
graphql-1.13.12 lib/graphql/define/assign_enum_value.rb
graphql-1.13.11 lib/graphql/define/assign_enum_value.rb
graphql-1.13.10 lib/graphql/define/assign_enum_value.rb
graphql-1.13.9 lib/graphql/define/assign_enum_value.rb
graphql-1.12.24 lib/graphql/define/assign_enum_value.rb
graphql-1.13.8 lib/graphql/define/assign_enum_value.rb
graphql-1.13.7 lib/graphql/define/assign_enum_value.rb
graphql-1.13.6 lib/graphql/define/assign_enum_value.rb