Changed assignment operator to conditional.

Ruby 1.9.3 complaining about an assignment operator being misused. Changed it to a conditional test.