module Jekyll::Roman

Constants

VERSION

Public Instance Methods

roman(input) click to toggle source
# File lib/jekyll/roman.rb, line 34
def roman(input)
  if /\A\d+\z/.match(input.to_s) # input is a positive number
    Integer.new(input).to_roman
  else
    return input
  end
end