Method: GraphQL::Execution::Lazy::LazyMethodMap#get

Defined in:
lib/graphql/execution/lazy/lazy_method_map.rb

#get(value) ⇒ Symbol?

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns The lazy_value_method for this object, or nil.

Parameters:

  • value (Object)

    an object which may have a lazy_value_method registered for its class or superclasses

Returns:

  • (Symbol, nil)

    The lazy_value_method for this object, or nil



35
36
37
# File 'lib/graphql/execution/lazy/lazy_method_map.rb', line 35

def get(value)
  @storage.compute_if_absent(value.class) { find_superclass_method(value.class) }
end