Rails prepares for Ruby 1.9
I was flicking through the Rails 2 release candidate code and was vaguely amused to find
unless respond_to?(:send!)
# Anticipating Ruby 1.9 neutering send
alias send! send
end
(In Ruby marking a method as private is more of a hint than a command. You can get round it by using Object#send – up until now. One of the Ruby 1.9 changes is that send won’t work for private methods – you need to use send!.)

0 Comments:
Post a Comment
<< Home