Home
subscribe

L'etat, c'est moi

Mere Complexities sells the consulting and development services of me, Paul Wilson.

Conferences

Organising Scotland on Rails
Speaker, RailsConf Europe '08

Archive

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!.)

All