Module: Mucks::Output
Instance Method Summary collapse
Instance Method Details
#wrap_with(text, show = true, &block) ⇒ Object
314 315 316 317 318 319 320 321 322 |
# File 'lib/mucks/mucks.rb', line 314 def wrap_with(text, show = true, &block) if block_given? puts "*** #{text} Start ".ljust(80, '*') if Config.verbose || show yield puts "--- #{text} End ".ljust(80, '-') if Config.verbose || show else puts "--- #{text} ".ljust(80, '-') if Config.verbose || show end end |