Module: Taro::Types::Shared::CustomFieldResolvers

Included in:
ObjectType
Defined in:
lib/taro/types/shared/custom_field_resolvers.rb

Overview

Allows implementing methods on types to override or implement the method used to retrieve the value of a field.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(mod) ⇒ Object



8
9
10
# File 'lib/taro/types/shared/custom_field_resolvers.rb', line 8

def self.included(mod)
  mod.extend(ClassMethods)
end

Instance Method Details

#resolve?(method) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/taro/types/shared/custom_field_resolvers.rb', line 4

def resolve?(method)
  self.class.custom_resolvers.key?(method)
end