From: James Coglan Date: 2008-10-16T23:04:22+09:00 Subject: Re: what is [] here ------=_Part_100741_12894226.1224165878250 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline class User > puts [].methods.size > puts self.methods.size > end > > > What does it mean to have [] method at a class level? Where is the > documentation for it? Here, [] is just an empty array literal. [].methods.size returns the number of public methods that an array has. ------=_Part_100741_12894226.1224165878250--