module PowerAssert

Constants

SUPPORT_ALIAS_METHOD
VERSION

Public Class Methods

configuration() click to toggle source
# File lib/power_assert/configuration.rb, line 3
def configuration
  @configuration ||= Configuration[false, false, true]
end
configure() { |configuration| ... } click to toggle source
# File lib/power_assert/configuration.rb, line 7
def configure
  yield configuration
end
start(assertion_proc_or_source, assertion_method: nil, source_binding: TOPLEVEL_BINDING) { |context| ... } click to toggle source
# File lib/power_assert.rb, line 25
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

Private Class Methods

clear_global_method_cache() click to toggle source
# File lib/power_assert.rb, line 35
def clear_global_method_cache
  eval('using PowerAssert.const_get(:Empty)', TOPLEVEL_BINDING)
end

Public Instance Methods

!() click to toggle source
# File lib/power_assert/enable_tracepoint_events.rb, line 65
def !
end
==() click to toggle source
# File lib/power_assert/enable_tracepoint_events.rb, line 58
def ==
end
fixed?() click to toggle source
# File lib/power_assert/enable_tracepoint_events.rb, line 27
def fixed?
end