Module: Utils::InstanceMethods

Defined in:
lib/testoaster.rb

Instance Method Summary collapse

Instance Method Details

#format_date(date) ⇒ Object



60
61
62
63
64
# File 'lib/testoaster.rb', line 60

def format_date(date)
  date = date.to_date
  # date.to_s.split(" UTC")[0]
  date.in_time_zone "Pacific Time (US & Canada)"
end

#format_time(time) ⇒ Object



66
67
68
# File 'lib/testoaster.rb', line 66

def format_time time
  time.in_time_zone "Pacific Time (US & Canada)"
end

#puts!(args, label = "") ⇒ Object



55
56
57
58
# File 'lib/testoaster.rb', line 55

def puts! args, label=""
  puts "+++ +++ #{label}"
  puts args.inspect
end