module Roman

Extended Modules

Defined in:

roman.cr

Constant Summary

POINTS = [{"m", 1000}, {"cm", 900}, {"d", 500}, {"cd", 400}, {"c", 100}, {"xc", 90}, {"l", 50}, {"xl", 40}, {"x", 10}, {"ix", 9}, {"v", 5}, {"iv", 4}, {"i", 1}]
VERSION = "0.1.0"

Instance Method Summary

Instance Method Detail

def decode(x : String) : Int32 #

[View source]
def encode(x) : String #

[View source]
def roman?(x : String) : Bool #

[View source]