Class: Worldwide::TimeFormatter
- Inherits:
-
Object
- Object
- Worldwide::TimeFormatter
- Defined in:
- lib/worldwide/time_formatter.rb
Instance Method Summary collapse
- #hour_minute_separator ⇒ Object
-
#initialize(locale: I18n.locale) ⇒ TimeFormatter
constructor
A new instance of TimeFormatter.
- #twelve_hour_clock? ⇒ Boolean
Constructor Details
#initialize(locale: I18n.locale) ⇒ TimeFormatter
Returns a new instance of TimeFormatter.
5 6 7 |
# File 'lib/worldwide/time_formatter.rb', line 5 def initialize(locale: I18n.locale) @locale = locale end |