From: Junhui Liao Date: 2010-08-06T19:25:53+09:00 Subject: Re: my script just read one line? Hi, Jesus, > Are you referring to this one: > http://www.ruby-doc.org/docs/ProgrammingRuby/ > >> I don't know why in this book, I could not find these information, like >> each_with_index, It is this book. And I made a mistake, in this book (I bought a PDF version), there exists the each_with_index. But I did search "each_with_index" in this book before but failed. Maybe there was a typing mistake when searching. > Well, I don't know if it's mentioned in the text, but there's a > reference: > > http://www.ruby-doc.org/docs/ProgrammingRuby/html/ref_m_enumerable.html#Enumerable.each_with_index > >> and like the example of two items between two bars "||", >> map{|time,signal| time} ? >> Where I can find these information ? > ... but I recommend you take a look at the API reference here: > > http://ruby-doc.org/core/ > > and study the classes: Array, Hash and Enumerable, which are pretty > important to master (of course there are others like String and so > on...) Thanks a lot for all of these references ! Cheers, Junhui -- Posted via http://www.ruby-forum.com/.