I am writing an Ajax request form with Ruby on Rails using a collection_select tag that looks like this:
<%= collection_select(\"Jobs\", \"cl
@German, tried to get answer for your question.
2.1.3 :025 > class AntiArray < Array
2.1.3 :026?> def [](ind)
2.1.3 :027?> self.fetch(-ind) + 1
2.1.3 :028?> end
2.1.3 :029?> end
=> :[]
2.1.3 :030 > y = AntiArray.new([1,2,3,4])
=> [1, 2, 3, 4]
2.1.3 :031 > y[1]
=> 5
2.1.3 :032 >
Hope this is what you are asking for. Given a try for you