From: Sebastian Hungerecker Date: 2007-12-13T05:23:40+09:00 Subject: Re: .capitalize! not being recognized in home made sort method Nigama Xx wrote: > def sort some_array ... > puts a.sort You're defining Object#sort(some_array), but you're calling Enumerable#sort(). You'd call your method by writing sort(a) not a.sort. If you'd want to call it via a.my_sort, you'd have to define it like module Enumerable # or class Array def sort ... end end HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826