Class: ReeNumber::NumberToOrdinalized
- Inherits:
-
Object
- Object
- ReeNumber::NumberToOrdinalized
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_number/package/ree_number/functions/number_to_ordinalized.rb
Constant Summary collapse
- DEFAULTS =
{ locale: :en }
Instance Method Summary collapse
Instance Method Details
#call(number, **opts) ⇒ Object
30 31 32 33 |
# File 'lib/ree_lib/packages/ree_number/package/ree_number/functions/number_to_ordinalized.rb', line 30 def call(number, **opts) = DEFAULTS.merge(opts) ordinalize(number, [:locale]) end |