From: come Date: 2007-03-07T18:10:18+09:00 Subject: Re: Ruby and MS WORD Another usefull one : class WIN32OLE_METHOD def to_str self.to_s end end and then : irb(main):032:0> word.ole_methods.grep(/Window/).sort => [ActiveWindow, NewWindow, ShowWindowsInTaskbar, ShowWindowsInTaskbar, WindowState, WindowState, Windows] On 7 mar, 10:04, "come" wrote: > Hi, > > class WIN32OLE_METHOD > def <=>(other) > self.to_s <=> other.to_s > end > end > > and word.ole_methods.sort work. >