Class: Transit::Rails::VerboseTimeWithZoneHandler
- Inherits:
-
Object
- Object
- Transit::Rails::VerboseTimeWithZoneHandler
- Defined in:
- lib/transit/rails/handlers.rb
Instance Method Summary collapse
-
#initialize ⇒ VerboseTimeWithZoneHandler
constructor
A new instance of VerboseTimeWithZoneHandler.
- #rep(o) ⇒ Object
- #string_rep(o) ⇒ Object
- #tag(o) ⇒ Object
Constructor Details
#initialize ⇒ VerboseTimeWithZoneHandler
Returns a new instance of VerboseTimeWithZoneHandler.
24 25 26 |
# File 'lib/transit/rails/handlers.rb', line 24 def initialize @h = Transit::WriteHandlers::VerboseTimeHandler.new end |
Instance Method Details
#rep(o) ⇒ Object
32 33 34 |
# File 'lib/transit/rails/handlers.rb', line 32 def rep(o) @h.rep(o) end |
#string_rep(o) ⇒ Object
36 37 38 |
# File 'lib/transit/rails/handlers.rb', line 36 def string_rep(o) @h.string_rep(o.to_time) end |
#tag(o) ⇒ Object
28 29 30 |
# File 'lib/transit/rails/handlers.rb', line 28 def tag(o) @h.tag(o) end |