Sha256: 95a112e53e6b120efa6ad1bc061966a1659bc94b1c86f7a01da7c0368ce88778
Contents?: true
Size: 205 Bytes
Versions: 18
Compression:
Stored size: 205 Bytes
Contents
class Reportinator def generate_banner(message, width=nil) dash_count = ((width.nil?) ? message.strip.length : width) return "#{'-' * dash_count}\n#{message}\n#{'-' * dash_count}\n" end end
Version data entries
18 entries across 18 versions & 1 rubygems