Method: Process#singleton_method_added
- Defined in:
- lib/test_prof/core.rb
#singleton_method_added(method_name) ⇒ Object
19 20 21 22 23 |
# File 'lib/test_prof/core.rb', line 19 def singleton_method_added(method_name) return super unless method_name == :clock_gettime_without_mock define_method(:clock_gettime_for_test_prof) { |*args| clock_gettime_without_mock(*args) } end |