Update Ruby.rb

Normally we use attr_reader, attr_writer, attr_accessor to access instance variables. This change cuts down duration time in half on my computer.

(the print loop wasn't doing anything, so i removed it)