Class: DateTime

Inherits:
Object
  • Object
show all
Defined in:
lib/merb_global/base.rb

Instance Method Summary collapse

Instance Method Details

#localize(format, args = {}) ⇒ Object



34
35
36
37
38
# File 'lib/merb_global/base.rb', line 34

def localize(format, args = {})
  opts = {:locale => Merb::Global::Locale.current}
  opts.merge!(args)
  Merb::Global::DateProviders.provider.localize opts[:locale], self, format
end