instead of:

class Wheel < Struct.new(:rim, :tire)
  #...
end

use

Wheel = Struct.new(:rim, :tire) do
  # ...
end

#ruby