From: Armin Roehrl Date: 2002-04-22T00:28:51+09:00 Subject: Re: Novice: Each and p Hello Thorsten, judging from the email address you might be abloe to read German: http://approximity.com/rubybuch/ About "each" look at http://www.approximity.com/rubybuch2/node24_main.html and especially read "Iteratoren". If not, look at the excellent online book by the pragmatic programmers: http://www.rubycentral.com/book/index.html A quick way to get info on let's say 'p' is to use ri. >ri p armin@linus:~/articles/refactoring> ri p -------------------------------------------------------------- Kernel::p p( [anObject]+> ) -> nil ------------------------------------------------------------------------ For each object, directly writes anObject.inspect followed by the current output record separator to the program's standard output. p bypasses the Ruby I/O libraries. p self produces: main You can get ri from http://www.rubycentral.com/downloads/ri.html I hope this helps, Armin. ----------------------------------------------- Armin Roehrl, http://www.approximity.com Training, Development and Mentoring OOP, XP, Java, Ruby, Smalltalk, Datamining, Parallel computing, Webservices Koautor des ersten dt. Rubybuches http://approximity.com/rubybuch/ Naechstes Rubyseminar: 9/9-11/9 in Hamburg.