Here's my solution in 1.9:

class Array
  def indices_of(value)
    indices = self.each_with_index.select { |v, i| v == value 
}.collect{|v, i| i }
    indices.empty? ? nil : indices
  end
end
-- 
Posted via http://www.ruby-forum.com/.