From: Leon Bogaert Date: 2008-05-30T07:18:01+09:00 Subject: Re: Quickie: Monkey patching Array I know it's bad behaviour :) But I'm just fiddling with ruby. class Array def [](elem) # just get rid of the "=" raise 'Yesss... It works!' end end a = ['one', 'two', 'three'] p a Didn't work also. It just prints: ["one", "two", "three"] -- Posted via http://www.ruby-forum.com/.