class Integer

Public Class Methods

from_roman(roman) click to toggle source
# File lib/roman.rb, line 249
def self.from_roman(roman)
  RomanNumeral.to_integer(roman)
end

Public Instance Methods

to_roman() click to toggle source

Converts this integer to a roman numeral.

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