module Utils::IRB::Shell

def irb_time_result(n = 1)

Returns:
  • (Object) - the result of the last block execution

Other tags:
    Yield: -

Parameters:
  • n (Integer) -- the number of times to execute the block
def irb_time_result(n = 1)
  r = nil
  irb_time(n) { |i| r = yield(i) }
  r
end