Method: GraphQL::Execution::Lazy::LazyMethodMap#set

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

#set(lazy_class, lazy_value_method) ⇒ Object

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.

Parameters:

  • lazy_class (Class)

    A class which represents a lazy value (subclasses may also be used)

  • lazy_value_method (Symbol)

    The method to call on this class to get its value



29
30
31
# File 'lib/graphql/execution/lazy/lazy_method_map.rb', line 29

def set(lazy_class, lazy_value_method)
  @storage[lazy_class] = lazy_value_method
end