Class: Transit::WriteHandlers::VerboseTimeHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/transit/write_handlers.rb

Direct Known Subclasses

VerboseDateHandler, VerboseDateTimeHandler

Instance Method Summary collapse

Instance Method Details

#rep(t) ⇒ Object



307
308
309
310
# File 'lib/transit/write_handlers.rb', line 307

def rep(t)
  # .getutc because we don't want to modify t
  t.getutc.strftime(Transit::TIME_FORMAT)
end

#string_rep(t) ⇒ Object



311
# File 'lib/transit/write_handlers.rb', line 311

def string_rep(t) rep(t) end

#tag(_) ⇒ Object



306
# File 'lib/transit/write_handlers.rb', line 306

def tag(_) "t" end