Rubyification and cleanups

Signed-off-by: Pekka Enberg <penberg@kernel.org>