Kernel

module Kernel

Public Instance Methods

breakpoint()
Alias for: debugger
capture(stream) { || ... } Show source

Captures the given stream and returns it:

stream = capture(:stdout) { puts 'notice' }
stream # => "notice\n"

stream = capture(:stderr) {