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