Class: Transit::Rails::TimeWithZoneHandler
- Inherits:
-
Object
- Object
- Transit::Rails::TimeWithZoneHandler
- Defined in:
- lib/transit/rails/handlers.rb
Instance Method Summary collapse
-
#initialize ⇒ TimeWithZoneHandler
constructor
A new instance of TimeWithZoneHandler.
- #rep(o) ⇒ Object
- #string_rep(o) ⇒ Object
- #tag(o) ⇒ Object
- #verbose_handler ⇒ Object
Constructor Details
#initialize ⇒ TimeWithZoneHandler
Returns a new instance of TimeWithZoneHandler.
4 5 6 |
# File 'lib/transit/rails/handlers.rb', line 4 def initialize @h = Transit::WriteHandlers::TimeHandler.new end |
Instance Method Details
#rep(o) ⇒ Object
12 13 14 |
# File 'lib/transit/rails/handlers.rb', line 12 def rep(o) @h.rep(o) end |
#string_rep(o) ⇒ Object
16 17 18 |
# File 'lib/transit/rails/handlers.rb', line 16 def string_rep(o) @h.string_rep(o.to_time) end |
#tag(o) ⇒ Object
8 9 10 |
# File 'lib/transit/rails/handlers.rb', line 8 def tag(o) @h.tag(o) end |
#verbose_handler ⇒ Object
20 |
# File 'lib/transit/rails/handlers.rb', line 20 def verbose_handler() VerboseTimeWithZoneHandler.new end |