Ruby bindings for scalaris, taken from scalaris source