Fixing warnings in Ruby code.

- "assigned but unused variable"