Class: TwitterCldr::Formatters::DateFormatter

Inherits:
DateTimeFormatter show all
Defined in:
lib/twitter_cldr/formatters/calendars/date_formatter.rb

Constant Summary

Constants inherited from DateTimeFormatter

TwitterCldr::Formatters::DateTimeFormatter::METHODS, TwitterCldr::Formatters::DateTimeFormatter::WEEKDAY_KEYS

Instance Attribute Summary

Attributes inherited from Base

#tokenizer

Instance Method Summary collapse

Methods inherited from DateTimeFormatter

#result_for_token

Methods inherited from Base

#format

Constructor Details

#initialize(options = {}) ⇒ DateFormatter

Returns a new instance of DateFormatter.



9
10
11
# File 'lib/twitter_cldr/formatters/calendars/date_formatter.rb', line 9

def initialize(options = {})
  @tokenizer = TwitterCldr::Tokenizers::DateTokenizer.new(:locale => extract_locale(options), :calendar_type => options[:calendar_type])
end