Top Level Namespace

Defined Under Namespace

Modules: ActiveSupport, Breakpoint, ClassInheritableAttributes, DRb, Dependencies, IRB, Inflector, Kernel Classes: Binding, Class, Date, Exception, Fixnum, Hash, Logger, MissingSourceFile, Module, Numeric, Object, String, Time, TimeZone

Instance Method Summary collapse

Instance Method Details

#assert(&block) ⇒ Object

See Breakpoint.assert



519
520
521
522
523
# File 'lib/active_support/breakpoint.rb', line 519

def assert(&block)
  Binding.of_caller do |context|
    Breakpoint.assert(context, &block)
  end
end

#breakpoint(id = nil, &block) ⇒ Object

See Breakpoint.breakpoint



512
513
514
515
516
# File 'lib/active_support/breakpoint.rb', line 512

def breakpoint(id = nil, &block)
  Binding.of_caller do |context|
    Breakpoint.breakpoint(id, context, &block)
  end
end

#silence_warningsObject



1
2
3
4
5
6
7
8
# File 'lib/active_support/misc.rb', line 1

def silence_warnings
  old_verbose, $VERBOSE = $VERBOSE, nil
  begin
    yield
  ensure
    $VERBOSE = old_verbose
  end
end