Sha256: e9175e841d6a486ed4d05ec6a04a7cbbbf9fe0003c99152e9a25e6f88c5637ac

Contents?: true

Size: 376 Bytes

Versions: 9

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true

require 'terminal-table'
module Kovid
  module_function

  def info_table(message)
    rows = [[message.to_s]]
    puts Terminal::Table.new title: '❗️', rows: rows
  end

  # Parse date as "02 Apr, 20"
  def dateman(date)
    date_to_parse = Date.strptime(date, '%m/%d/%y').to_s
    Date.parse(date_to_parse).strftime('%d %b, %y')
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kovid-0.6.5 lib/kovid/helpers.rb
kovid-0.6.4 lib/kovid/helpers.rb
kovid-0.6.3 lib/kovid/helpers.rb
kovid-0.6.2 lib/kovid/helpers.rb
kovid-0.6.1 lib/kovid/helpers.rb
kovid-0.6.0 lib/kovid/helpers.rb
kovid-0.5.8 lib/kovid/helpers.rb
kovid-0.5.7 lib/kovid/helpers.rb
kovid-0.5.6 lib/kovid/helpers.rb