Module: MoreMath::StringNumeral::Functions
- Defined in:
- lib/more_math/string_numeral.rb
Overview
Module containing convenience methods for StringNumeral conversion.
Instance Method Summary collapse
-
#StringNumeral(other, alphabet = 'a'..'z') ⇒ StringNumeral
Creates a StringNumeral from an object.
-
#to_string_numeral(alphabet = 'a'..'z') ⇒ StringNumeral
Converts this object to a StringNumeral.
Instance Method Details
#StringNumeral(other, alphabet = 'a'..'z') ⇒ StringNumeral
Creates a StringNumeral from an object.
314 315 316 |
# File 'lib/more_math/string_numeral.rb', line 314 def StringNumeral(other, alphabet = 'a'..'z') ::MoreMath::StringNumeral.from(other, alphabet) end |
#to_string_numeral(alphabet = 'a'..'z') ⇒ StringNumeral
Converts this object to a StringNumeral.
322 323 324 |
# File 'lib/more_math/string_numeral.rb', line 322 def to_string_numeral(alphabet = 'a'..'z') StringNumeral(self, alphabet) end |