Re: Ruby documentation typo



Behrang Saeedzadeh wrote:

> Actually I'm new to Ruby, and I've not passed that page yet so...

You can try the examples in the book in the interactive ruby shell, irb.
Try running it as

% irb

at your shell prompt and then just paste the examples and see the
results,
nikolai

--
Nikolai Weibull: now available free of charge at http://bitwi.se/!
Born in Chicago, IL USA; currently residing in Gothenburg, Sweden.
main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}


.



Relevant Pages

  • Re: [QUIZ] Not So Random (#173)
    ... quiz until 48 hours have passed from the time on this message. ... Support Ruby Quiz 2 by submitting ideas as often as you can! ... irb> Array.new ... def srand ...
    (comp.lang.ruby)
  • =?WINDOWS-1252?Q?Re:_I=92m_having_a_hard_time_learning_ruby.?=
    ... My biggest hurdle getting started with ruby is finding which methods/classes/files to call upon for whatever the heck I’m trying to accomplish. ... methods for strings I might want, were all non-obvious solutions to various problems I had when programming. ... For example, every 4-6 weeks, somebody pops up asking where on earth they can find a shuffle command. ... But you can play around within a regular source file rather than use irb directly. ...
    (comp.lang.ruby)
  • Re: Newbie questions
    ... Whenever I start IRB and issue a require 'xxxxx' command, Ruby ... responds with "Can't load file". ...
    (comp.lang.ruby)
  • Re: ruby and paths
    ... Unfortunately I am not able to start up the irb: ... You can see the ruby load path with the following command: ... made by some hard coded directories, depending on the installation path ... This is a setup I've never tried, ...
    (comp.lang.ruby)
  • Re: Accessing variables when loading a file to irb
    ... I'm new to Ruby. ... When I load a file, classes are loaded but not the variables set in the ... irb is a little different from ruby: ... $scope = proc ...
    (comp.lang.ruby)