I understand that using String#replace works for the String class, but 
what if you were writing a random method for Integer that takes a number 
and sets it equal to some other number.

Ex.

x = 7

class Integer
  def crazy
    ...set x to 5...
  end
end


now when you call x the value is 5

-- 
Posted via http://www.ruby-forum.com/.