lib/graphql/define/instance_definable.rb
def define(**kwargs, &block)
        # make sure the previous definition_proc was executed:
        ensure_defined
        stash_dependent_methods
        @pending_definition = Definition.new(kwargs, block)
        nil
      end
# Mutate this instance using functions from its {.definition}s.
# Keywords or helpers in the block correspond to keys given to `accepts_definitions`.
#
# Note that the block is not called right away -- instead, it's deferred until
# one of the defined fields is needed.
# @return [void]
Mutate this instance using functions from its {.definition}s.
Keywords or helpers in the block correspond to keys given to `accepts_definitions`.

Note that the block is not called right away -- instead, it's deferred until
one of the defined fields is needed.
Mutate this instance using functions from its { . definition } s . Keywords or helpers in the block correspond to keys given to ` accepts_definitions ` . Note that the block is not called right away -- instead it ' s deferred until one of the defined fields is needed .
def define(**kwargs, &block)
        ensure_defined
        stash_dependent_methods
        @pending_definition = Definition.new(kwargs, block)
        nil
      end
def define ( ** kwargs , & block ) ensure_defined stash_dependent_methods @pending_definition = Definition . new ( kwargs , block ) nil end
Mutate this instance using functions from its {.definition}s.
Keywords or helpers in the block correspond to keys given to `accepts_definitions`.
Mutate this instance using functions from its { . definition } s . Keywords or helpers in the block correspond to keys given to ` accepts_definitions ` .
# make sure the previous definition_proc was executed:
None
void
kwargs
block