Sha256: dce5837b7a98495a5082ae790e2d47c311ea258d274461c33a2be332a409a558
Contents?: true
Size: 343 Bytes
Versions: 6
Compression:
Stored size: 343 Bytes
Contents
# frozen_string_literal: true My = Object.new class << My def verbose(what, txt) marker = "*" * 4 arr = txt arr = txt ? txt.split("\n") : "" unless txt.is_a?(Array) if arr.length > 1 puts "#{marker} #{what} #{marker}" puts txt puts marker else puts "#{marker} #{what}: #{txt}" end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
doit-1.0.9 | lib/my.rb |
doit-1.0.8 | lib/my.rb |
doit-1.0.7 | lib/my.rb |
doit-1.0.5 | lib/my.rb |
doit-1.0.4 | lib/my.rb |
doit-1.0.3 | lib/my.rb |