On Wed, Aug 14, 2002 at 06:23:39AM +0900, Maur?cio wrote:
> 
> >>(...)
> > existing_string += sprintf("%16d", decimal)
> >
> > --
> > Alan Chen
> > Digikata LLC
> > http://digikata.com
> >
> 
>     I'm curious, since I'm new to Ruby: how does sprintf is called, i.e., is
> it a method of something or it's some kind of global function (or sintatic
> sugar for something)?

It's a private method of the Kernel module. As Object includes Kernel, the
default object has all the methods in Kernel, including sprintf, printf
and stuff:

irb(main):001:0> self
main
irb(main):002:0> self.kind_of? Kernel
true
irb(main):003:0> sprintf "%16d", 23
"              23"

-- 
 _           _                             
| |__   __ _| |_ ___ _ __ ___   __ _ _ __  
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
	Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com
  
<|ryan|> I don't use deb
<netgod> u poor man
<Disconnect> netgod: heh
<Kingsqueak> apt-get install task-p0rn