Module: L10n::CoreExtensions::NumericExt::Formatting
- Defined in:
- lib/l10n/core_extensions/numeric_ext.rb
Instance Method Summary collapse
-
#to_formatted_s(format = :rounded, options = nil) ⇒ Object
un-deprecate method.
Instance Method Details
#to_formatted_s(format = :rounded, options = nil) ⇒ Object
un-deprecate method
29 30 31 32 33 34 35 |
# File 'lib/l10n/core_extensions/numeric_ext.rb', line 29 def to_formatted_s(format = :rounded, = nil) if .nil? && format.is_a?(Hash) = format format = :rounded end to_s(format, || {}) end |