Class: TurboTest::ConstantTracer::Regexp
- Inherits:
-
TurboTestDelegateClass
- Object
- TurboTestDelegateClass
- TurboTest::ConstantTracer::Regexp
- Extended by:
- Klass::ClassMethods
- Includes:
- Klass::InstanceMethods
- Defined in:
- lib/turbo_test_constant_tracer/regexp/tilde.rb
Instance Attribute Summary
Attributes included from Klass::ClassMethods
Attributes included from Klass::InstanceMethods
#turbo_test_name, #turbo_test_path
Instance Method Summary collapse
Methods included from Klass::ClassMethods
Methods included from Klass::InstanceMethods
#__getobj__, #initialize, #turbo_test_proxied_class
Instance Method Details
#~ ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/turbo_test_constant_tracer/regexp/tilde.rb', line 12 def ~ caller_binding = binding.of_caller(1) res = (self =~ caller_binding.eval("$_")) caller_binding.local_variable_set(:_turbotest_tilde, $LAST_MATCH_INFO) caller_binding.eval("$~=_turbotest_tilde") res end |