Class: Mack::Localization::DateFormatEngine::EN
- Defined in:
- lib/mack-localization/format_engine/df_engines/en.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#date_format_template(type) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/mack-localization/format_engine/df_engines/en.rb', line 6 def date_format_template(type) hash = ivar_cache("df_hash") do df_hash = { :df_short => "mm/dd/yyyy", :df_medium => "DD, MM dd, yyyy", :df_long => "DD, MM dd, yyyy" } end return hash["df_#{type}".to_sym] end |
#days_of_week(type) ⇒ Object
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/mack-localization/format_engine/df_engines/en.rb', line 18 def days_of_week(type) hash = ivar_cache("dow_hash") do dow_hash = { :dow_short => %w{M T W T F S S}, :dow_medium => %w{Mon Tue wed Thu Fri Sat Sun}, :dow_long => %w{Monday Tuesday Wednesday Thursday Friday Saturday Sunday} } end return hash["dow_#{type}".to_sym] end |
#months(type) ⇒ Object
29 30 31 32 33 34 35 36 37 38 |
# File 'lib/mack-localization/format_engine/df_engines/en.rb', line 29 def months(type) hash = ivar_cache("m_hash") do m_hash = { :month_short => %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}, :month_medium => %w{Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec}, :month_long => %w{January February March April May June July August September October November December} } end return hash["month_#{type}".to_sym] end |