Top Level Namespace
Defined Under Namespace
Modules: ActionController, ActionView, ActiveSupport, Breakpoint, Builder, ClassInheritableAttributes, DRb, Dependencies, IRB, Inflector, Kernel, Test Classes: Binding, CGI, CGIMethods, Class, Hash, Logger, Module, Numeric, Object, String
Instance Method Summary collapse
-
#assert(&block) ⇒ Object
See Breakpoint.assert.
-
#breakpoint(id = nil, &block) ⇒ Object
See Breakpoint.breakpoint.
- #silence_warnings ⇒ Object
Instance Method Details
#assert(&block) ⇒ Object
See Breakpoint.assert
514 515 516 517 518 |
# File 'lib/action_controller/support/breakpoint.rb', line 514 def assert(&block) Binding.of_caller do |context| Breakpoint.assert(context, &block) end end |
#breakpoint(id = nil, &block) ⇒ Object
See Breakpoint.breakpoint
507 508 509 510 511 |
# File 'lib/action_controller/support/breakpoint.rb', line 507 def breakpoint(id = nil, &block) Binding.of_caller do |context| Breakpoint.breakpoint(id, context, &block) end end |
#silence_warnings ⇒ Object
1 2 3 4 5 6 7 8 |
# File 'lib/action_controller/support/misc.rb', line 1 def silence_warnings old_verbose, $VERBOSE = $VERBOSE, nil begin yield ensure $VERBOSE = old_verbose end end |