Class: Time

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

Instance Method Summary collapse

Instance Method Details

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



42
43
44
45
46
# File 'lib/merb_global/base.rb', line 42

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