class TurboTest::ConstantTracer::Regexp
Public Instance Methods
~()
click to toggle source
# 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