Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/numerify/core_ext/string.rb
Overview
A patch to add the convert method to the String class.
Instance Method Summary collapse
Instance Method Details
#convert(language = :geez) ⇒ Object
7 8 9 10 |
# File 'lib/numerify/core_ext/string.rb', line 7 def convert(language = :geez) factory = Numerify::Utils::NumeralFactory.new factory.call(language).convert(self) end |