# File lib/power_assert.rb, line 24 def configuration @configuration ||= Configuration[false, false] end
# File lib/power_assert.rb, line 28 def configure yield configuration end
# File lib/power_assert.rb, line 32 def start(assertion_proc_or_source, assertion_method: nil, source_binding: TOPLEVEL_BINDING) if respond_to?(:clear_global_method_cache, true) clear_global_method_cache end yield Context.new(assertion_proc_or_source, assertion_method, source_binding) end
# File lib/power_assert.rb, line 42 def clear_global_method_cache eval('using PowerAssert.const_get(:Empty)', TOPLEVEL_BINDING) end
# File lib/power_assert/enable_tracepoint_events.rb, line 62 def ! end
# File lib/power_assert/enable_tracepoint_events.rb, line 55 def == end
# File lib/power_assert/enable_tracepoint_events.rb, line 24 def fixed? end