Module: RBS::Test

Defined in:
lib/rbs/test.rb,
lib/rbs/test/spy.rb,
lib/rbs/test/hook.rb,
lib/rbs/test/errors.rb,
lib/rbs/test/type_check.rb,
lib/rbs/test/test_helper.rb

Defined Under Namespace

Modules: Errors, Spy, TypeAssertions Classes: ArgumentsReturn, CallTrace, Hook, TypeCheck

Constant Summary collapse

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)

Class Method Summary collapse

Class Method Details

.call(receiver, method, *args, **kwargs, &block) ⇒ Object



22
23
24
# File 'lib/rbs/test.rb', line 22

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