module DistinctOutput
Constants
- VERSION
Public Class Methods
show(str)
click to toggle source
# File lib/distinct_output.rb, line 5 def self.show(str) if !str.instance_of? String str = str.to_s end bar_length = str.length + 10 bar = '*' * bar_length blank = ' ' * 4 puts puts Rainbow(bar).green puts blank + Rainbow(str).blue puts Rainbow(bar).green puts end