module IrbBenchmark
Main IrbBenchmark
module, which has to be injected into IRB::Context
.
Constants
- VERSION
Attributes
enabled[RW]
Public Class Methods
print(bm)
click to toggle source
# File lib/irb_benchmark.rb, line 10 def print(bm) if defined?(Wirb) && (!defined?(FancyIrb) || FancyIrb[:colorize, :output]) $stdout.print Wirb.colorize_result bm.to_s else $stdout.print bm.to_s end end