Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #7214
| Newsgroups | comp.lang.ruby |
|---|---|
| Date | 2016-04-13 09:08 -0700 |
| References | <affb94ab-54dc-4ab1-9220-b87bb4f9aa2f@googlegroups.com> <dn3hpoFrof4U1@mid.individual.net> <d75aaf70-8ae3-451a-a2a4-ae600509936c@googlegroups.com> <m24mb57w99.fsf@gmail.com> |
| Message-ID | <4d72edd3-6de5-433e-836e-56e297779e3a@googlegroups.com> (permalink) |
| Subject | Re: in `open': no implicit conversion of nil into String (TypeError) from ex30.rb:3:in `<main>' |
| From | Cai Gengyang <gengyangcai@gmail.com> |
Ok, it works now ! I was on exercise 15 (http://learnrubythehardway.org/book/ex15.html), not exercise 30 ... just named it ex30 randomly because I previously saved another file called ex15. CaiGengYangs-MacBook-Pro:GoatBoy CaiGengYang$ ruby ex30.rb ex30_sample.txt Here's your file ex30_sample.txt: This is stuff I typed into a file. It is really cool stuff. Lots and lots of fun to have in here. Type the filename again: ex30_sample.txt This is stuff I typed into a file. It is really cool stuff. Lots and lots of fun to have in here. I realised that I got the error because I initially forgot to create the 2nd sample.txt file On Wednesday, April 13, 2016 at 4:23:25 PM UTC+8, Sebastian Christ wrote: > On 2016-04-12 22:34, Cai Gengyang <gengyangcai@gmail.com> wrote: > > What does "invoking the script without arguments" mean ? > > Are you sure that you've done all the exercises? You say you're now at Ex. 30, > but obviously you didn't pay that much attention to Ex. 13, did you? > > Regards, > Sebastian > > -- > Sebastian (Rudolfo) Christ > http://rudolfochrist.github.io > GPG Fingerprint: 306D 8FD3 DFB6 4E44 5061 > CE71 6407 D6F8 2AC5 55DD
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar
in `open': no implicit conversion of nil into String (TypeError) from ex30.rb:3:in `<main>' Cai Gengyang <gengyangcai@gmail.com> - 2016-04-11 20:31 -0700
Re: in `open': no implicit conversion of nil into String (TypeError) from ex30.rb:3:in `<main>' Robert Klemme <shortcutter@googlemail.com> - 2016-04-12 08:09 +0200
Re: in `open': no implicit conversion of nil into String (TypeError) from ex30.rb:3:in `<main>' Cai Gengyang <gengyangcai@gmail.com> - 2016-04-12 22:34 -0700
Re: in `open': no implicit conversion of nil into String (TypeError) from ex30.rb:3:in `<main>' Sebastian Christ <rudolfo.christ@gmail.com> - 2016-04-13 10:23 +0200
Re: in `open': no implicit conversion of nil into String (TypeError) from ex30.rb:3:in `<main>' Cai Gengyang <gengyangcai@gmail.com> - 2016-04-13 09:08 -0700
Re: in `open': no implicit conversion of nil into String (TypeError) from ex30.rb:3:in `<main>' Robert Klemme <shortcutter@googlemail.com> - 2016-04-13 20:27 +0200
Re: in `open': no implicit conversion of nil into String (TypeError) from ex30.rb:3:in `<main>' Cai Gengyang <gengyangcai@gmail.com> - 2016-04-14 21:59 -0700
csiph-web