[ABE.pm] The Ruby Dumb Questions Series ;-)

Ricardo SIGNES rjbs-perl-abe at lists.manxome.org
Thu Dec 9 20:23:53 CST 2004


* Randy Kramer <rhkramer at gmail.com> [2004-12-09T20:55:11]
> (the smart ass introduction to the question:) If Ruby wants to be so
> consistent as an object oriented language, with a consistent syntax of
> object.method, why is it:
> 
> puts <string>
> instead of:
> <string>.puts

puts is a method on Kernel.  The Kernel methods are always available
without qualifying the object.  Read about the Kernel class.

-- 
rjbs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/archives/abe-pm/attachments/20041209/edfac783/attachment.bin


More information about the ABE-pm mailing list