From C to Ruby

Signed-off-by: Alexander Kluth <derhartmut@niwohlos.org>
Rewrite in Ruby, first commit

Signed-off-by: Alexander Kluth <derhartmut@niwohlos.org>