Sha256: 84fd9137de818848c2d3560452557623b1714ae5d9b67d1080ac379122727aeb
Contents?: true
Size: 295 Bytes
Versions: 3
Compression:
Stored size: 295 Bytes
Contents
class My def self.verbose(what, txt) marker = '*'*4 arr = txt arr = txt ? txt.split("\n") : '' unless Array === txt if arr.length > 1 puts "#{marker} #{what} #{marker}" puts txt puts marker else puts "#{marker} #{what}: #{txt}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
doit-0.2.8 | lib/my.rb |
doit-0.2.7 | lib/my.rb |
doit-0.2.4 | lib/my.rb |