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

Version Path
ceedling-0.27.0 lib/ceedling/reportinator.rb
ceedling-0.25.0 lib/ceedling/reportinator.rb
ceedling-0.24.0 lib/ceedling/reportinator.rb
ceedling-0.22.0 lib/ceedling/reportinator.rb
ceedling-0.21.0 lib/ceedling/reportinator.rb
ceedling-0.20.3 lib/ceedling/reportinator.rb
ceedling-0.20.2 lib/ceedling/reportinator.rb
ceedling-0.19.0 lib/ceedling/reportinator.rb
ceedling-0.18.0 lib/ceedling/reportinator.rb
ceedling-0.17.0 lib/ceedling/reportinator.rb
ceedling-0.16.0 lib/ceedling/reportinator.rb
ceedling-0.15.6 lib/ceedling/reportinator.rb
ceedling-0.15.5 lib/ceedling/reportinator.rb
ceedling-0.15.4 lib/ceedling/reportinator.rb
ceedling-0.15.3 lib/ceedling/reportinator.rb
ceedling-0.15.2 lib/ceedling/reportinator.rb
ceedling-0.15.1 lib/ceedling/reportinator.rb
ceedling-0.15.0 lib/ceedling/reportinator.rb