Sha256: c9219d798f8f9010b5d06b2f80affc1f7574f9ca8b41ebfb34caf9686c69ff1f
Contents?: true
Size: 203 Bytes
Versions: 3
Compression:
Stored size: 203 Bytes
Contents
module Kernel # Does a puts only if IRB is in verbose mode. def vputs(*messages) messages.map! { |m| "[Hairballs] #{m}" } puts(*messages) if defined?(::IRB) && ::IRB.conf[:VERBOSE] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hairballs-0.1.1 | lib/hairballs/ext/kernel_vputs.rb |
hairballs-0.1.0 | lib/hairballs/ext/kernel_vputs.rb |
hairballs-0.0.1 | lib/hairballs/ext/kernel_vputs.rb |