|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Using IRB
So I have used ruby before but it has been about a year, and for some reason this time I am having some issues. I installed Ruby and then FreeRide. I open the IRB to run a simple program that I made just to see that everythings working and it will not let me do anything without syntax errors in the IRB. this is all I tried to do.
Code:
$ CD $ MKDIR RubyTestDir $ CD RubyTestDir $ ruby -cw test.rb Any help at all would be great because I want to get moving with the code. Thank you. |
|
#2
|
|||
|
|||
|
Several things:
What you posted is not an irb session. If what you posted is intended to be a shell session of sorts, then you make a directory, enter that (empty) directory and try to interpret a file that is not there... I'm not sure I understand that. You need to post a correct walkthrough of what you did (including error output) so that we may see what went wrong. From what you post, there is not enough information to even understand what error you are getting.
__________________
-- I'll provide you with reference points; if they dont work, refer to something else. If you process text, this might make your life a little easier. |
|
#3
|
|||
|
|||
|
Im aware that, that is shell script. Which is something i was doing at the same time, sorry for not pasting the correct code in but i solved my problem..sorry
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Ruby Programming > Using IRB |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|