module My

Public Class Methods

verbose(what, txt) click to toggle source
# File lib/my.rb, line 6
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