Sha256: 928fadf1c4769720b766e3d66311056f45706aa3234604e54fd728e1db9381ba

Contents?: true

Size: 975 Bytes

Versions: 7

Compression:

Stored size: 975 Bytes

Contents

require "rbs/test/spy"
require "rbs/test/errors"
require "rbs/test/type_check"
require "rbs/test/hook"

module RBS
  module Test
    IS_AP = Kernel.instance_method(:is_a?)
    DEFINE_METHOD = Module.instance_method(:define_method)
    INSTANCE_EVAL = BasicObject.instance_method(:instance_eval)
    INSTANCE_EXEC = BasicObject.instance_method(:instance_exec)
    METHOD = Kernel.instance_method(:method)
    CLASS = Kernel.instance_method(:class)
    SINGLETON_CLASS = Kernel.instance_method(:singleton_class)
    PP = Kernel.instance_method(:pp)
    INSPECT = Kernel.instance_method(:inspect)
    METHODS = Kernel.instance_method(:methods)

    ArgumentsReturn = Struct.new(:arguments, :return_value, :exception, keyword_init: true)
    CallTrace = Struct.new(:method_name, :method_call, :block_calls, :block_given, keyword_init: true)

    def self.call(receiver, method, *args, **kwargs, &block)
      method.bind_call(receiver, *args, **kwargs, &block)
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
rbs-0.5.0 lib/rbs/test.rb
rbs-0.4.0 lib/rbs/test.rb
rbs-0.3.1 lib/rbs/test.rb
rbs-0.3.0 lib/rbs/test.rb
rbs-0.2.0 lib/rbs/test.rb
steep-0.16.0 vendor/ruby-signature/lib/rbs/test.rb
steep-0.15.0 vendor/ruby-signature/lib/rbs/test.rb