I was writing some code, and there I found something odd, which made me
surprised :

class Object
  def bar
    #"I got #{@bar}"
  end
  def bar=(bar)
    'return'
  end
end

self.bar = 10 # => 10 <~~ why not the value 'return', instead 10
send(:bar=,10) # => 'return'

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