Mikael Høilund
5/29/2008 10:25:00 PM
On May 30, 2008, at 0:18, Leon Bogaert wrote:
> class Array
> def [](elem) # just get rid of the "=3D"
> raise 'Yesss... It works!'
> end
> end
>
> a =3D ['one', 'two', 'three']
That's an array literal, not Array#[]. No way to overload that, I'm =20
afraid. Try running:
a[0]
--=20
Name =3D "Mikael H=F8ilund"; Email =3D Name.gsub %r/\s/,%#=3D?,# ## =
visit
*a=3De=3D?=3D,!????,:??,?,,Email.downcase![eval(%["\\%o\\%o"]% ## =
http://
[?**2+?o,?\\*2])]=3D"o";Email.gsub! %%\%c%*3%a, %?%c? % ?@ ## hoilund
def The(s)%%\%s.%%s+%.org\n.end; :Go and print The Email ## dot org