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/tester.rb,
lib/rbs/test/observer.rb,
lib/rbs/test/type_check.rb,
lib/rbs/test/setup_helper.rb
Defined Under Namespace
Modules: Errors, Hook, Observer, SetupHelper Classes: ArgumentsReturn, CallTrace, Tester, 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 Attribute Summary collapse
-
.suffix ⇒ Object
Returns the value of attribute suffix.
Class Method Summary collapse
Class Attribute Details
.suffix ⇒ Object
Returns the value of attribute suffix.
72 73 74 |
# File 'lib/rbs/test.rb', line 72 def suffix @suffix end |
Class Method Details
.call(receiver, method, *args, &block) ⇒ Object
82 83 84 |
# File 'lib/rbs/test.rb', line 82 def self.call(receiver, method, *args, &block) method.bind_call(receiver, *args, &block) end |
.reset_suffix ⇒ Object
74 75 76 |
# File 'lib/rbs/test.rb', line 74 def reset_suffix self.suffix = "RBS_TEST_#{SecureRandom.hex(3)}" end |