refactor ruby.pp