Class: Transit::Rails::TimeWithZoneHandler

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

Instance Method Summary collapse

Constructor Details

#initializeTimeWithZoneHandler

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_handlerObject



20
# File 'lib/transit/rails/handlers.rb', line 20

def verbose_handler() VerboseTimeWithZoneHandler.new end