From: Pat Maddox Date: 2007-12-22T17:24:13+09:00 Subject: Re: Singleton Method On Dec 21, 2007 11:51 PM, Gary Wright wrote: > > On Dec 22, 2007, at 1:35 AM, Ryan Lewis wrote: > > > So defining the 'second' method like so: > > def Array.second > > self[1] > > end > > > > is the same is making the singleton class like below. > > Class << Array > > def second > > self[1] > > end > > end > > No. > His question is, "are these the same?" to which the answer is simply yes. Pat