Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/roman.rb
Instance Method Summary collapse
-
#is_roman_numeral? ⇒ Boolean
Returns true if a valid roman numeral.
-
#to_roman ⇒ Object
Considers string a roman numeral numeral, and converts it to the corresponding integer.
Instance Method Details
#is_roman_numeral? ⇒ Boolean
Returns true if a valid roman numeral.
270 271 272 |
# File 'lib/roman.rb', line 270 def is_roman_numeral? RomanNumeral.is_roman_numeral?(self) end |
#to_roman ⇒ Object
Considers string a roman numeral numeral, and converts it to the corresponding integer.
265 266 267 |
# File 'lib/roman.rb', line 265 def to_roman RomanNumeral.new(self) end |