module GraphQL::Schema::Interface::DefinitionMethods
def definition_methods(&block)
- Added as class methods to this interface
Methods defined in this block will be:
def definition_methods(&block) # Use an instance variable to tell whether it's been included previously or not; # You can't use constant detection because constants are brought into scope # by `include`, which has already happened at this point. if !defined?(@_definition_methods) defn_methods_module = Module.new @_definition_methods = defn_methods_module const_set(:DefinitionMethods, defn_methods_module) extend(self::DefinitionMethods) end self::DefinitionMethods.module_eval(&block) end