Ruby wrapper of c9s/r3