--90e6ba53ac2eab3bbd04a23b76d4 Content-Type: text/plain; charset=ISO-8859-1 On Sun, May 1, 2011 at 4:29 AM, Konstantin Ka <paranox3 / yahoo.de> wrote: > > Would there be any way that Ruby-Newbie-mme could come along, have a > look inside the preprogrammed String class and see written there in Ruby > language > > > def rand > > self.split('').shuffle.join > > end > > ... because that would enable me to go "Oh, sure! It splits the string, > shuffles it, and joins it back together. Sounds easy!" even if, to find > out what some of those "1st tier" methods like .split actually do, I'd > have to go look at the C code. > > > Check out the gem pry (get it by going to the command line and typing "gem install pry pry-doc" -- possibly requiring "sudo" privelages, and possibly not working on 1.8.6) Then you can start a pry session with "pry" --90e6ba53ac2eab3bbd04a23b76d4--