Sha256: 86d2576eabeb5d17b578feb87a8328ef575bf1c3000ff5f8a761133884c862d4

Contents?: true

Size: 343 Bytes

Versions: 3

Compression:

Stored size: 343 Bytes

Contents

# frozen_string_literal: true

My = Object.new

class << My
  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
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
doit-1.0.2 lib/my.rb
doit-1.0.1 lib/my.rb
doit-0.3.9 lib/my.rb