Implementation of mrsh in ruby

concept stolen from a friends homework of ~20 years ago