lib/rails/graphql/callback.rb
# This basically allows the class to be passed as +&block+
This basically allows the class to be passed as +█+
This basically allows the class to be passed as + █ +
def to_proc
        method(:call).to_proc.tap do |block|
          block.define_singleton_method(:source_location, &method(:source_location))
        end
      end
def to_proc method ( :call ) . to_proc . tap do | block | block . define_singleton_method ( :source_location , & method ( :source_location ) ) end end
This basically allows the class to be passed as +&block+
This basically allows the class to be passed as + &block +