example42's puppi implementation in ruby