Class: TwitterCldr::Formatters::TimeFormatter
- Inherits:
-
DateTimeFormatter
- Object
- Base
- DateTimeFormatter
- TwitterCldr::Formatters::TimeFormatter
- Defined in:
- lib/twitter_cldr/formatters/calendars/time_formatter.rb
Constant Summary
Constants inherited from DateTimeFormatter
DateTimeFormatter::METHODS, DateTimeFormatter::WEEKDAY_KEYS
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ TimeFormatter
constructor
A new instance of TimeFormatter.
Methods inherited from DateTimeFormatter
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ TimeFormatter
Returns a new instance of TimeFormatter.
9 10 11 |
# File 'lib/twitter_cldr/formatters/calendars/time_formatter.rb', line 9 def initialize( = {}) @tokenizer = TwitterCldr::Tokenizers::TimeTokenizer.new(:locale => extract_locale(), :calendar_type => [:calendar_type]) end |