Class: ReeNumber::NumberToOrdinalized

Inherits:
Object
  • Object
show all
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)
  options = DEFAULTS.merge(opts)
  ordinalize(number, options[:locale])
end