class String

Public Instance Methods

is_roman_numeral?() click to toggle source

Returns true if a valid roman numeral.

# File lib/roman.rb, line 270
def is_roman_numeral?
  RomanNumeral.is_roman_numeral?(self)
end
to_roman() click to toggle source

Considers string a roman numeral numeral, and converts it to the corresponding integer.

# File lib/roman.rb, line 265
def to_roman
  RomanNumeral.new(self)
end