lib/kitchen/patches/integer.rb
# Formats as different types of integers, including roman numerals.
#
# @return [String]
#
Formats as different types of integers, including roman numerals.
Formats as different types of integers including roman numerals .
def to_format(format)
    case format
    when :arabic
      to_s
    when :roman
      raise 'Unknown conversion to Roman numerals' if self > self.class.roman_numerals.keys.first
      to_roman
    else
      raise 'Unknown integer format'
    end
  end
def to_format ( format ) case format when :arabic to_s when :roman raise 'Unknown conversion to Roman numerals' if self > self . class . roman_numerals . keys . first to_roman else raise 'Unknown integer format' end end
Formats as different types of integers, including roman numerals.
Formats as different types of integers including roman numerals .
None
String
format
<not_specific>