lib/graphql/define/instance_definable.rb
def redefine(**kwargs, &block)
        ensure_defined
        new_inst = self.dup
        new_inst.define(**kwargs, &block)
        new_inst
      end
# Shallow-copy this object, then apply new definitions to the copy.
# @see {#define} for arguments
# @return [InstanceDefinable] A new instance, with any extended definitions
Shallow-copy this object, then apply new definitions to the copy.
Shallow - copy this object then apply new definitions to the copy .
def redefine(**kwargs, &block)
        ensure_defined
        new_inst = self.dup
        new_inst.define(**kwargs, &block)
        new_inst
      end
def redefine ( ** kwargs , & block ) ensure_defined new_inst = self . dup new_inst . define ( ** kwargs , & block ) new_inst end
Shallow-copy this object, then apply new definitions to the copy.
Shallow - copy this object then apply new definitions to the copy .
A new instance, with any extended definitions
A new instance with any extended definitions
InstanceDefinable
kwargs
block
see
{#define} for arguments
{ #define } for arguments