Module: Utils::InstanceMethods

Defined in:
lib/utils.rb,
lib/testoaster.rb

Instance Method Summary collapse

Instance Method Details

#format_date(date) ⇒ Object



15
16
17
18
19
# File 'lib/utils.rb', line 15

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



21
22
23
# File 'lib/utils.rb', line 21

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

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



10
11
12
13
# File 'lib/utils.rb', line 10

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