New to ruby

C

Chris Daves

Hi i'm completely new to ruby but have some experience in java. First
thing first, whats the best version of ruby to download and where from?
I have downloaded ruby fxri for windows. Also i have tried to make a
small program on this type of ruby but can't find out how to compile it.
I can make a puts statedment work in the real time area and i have scite
text editor. but i am trying to get ruby to read in a file of references
and then just output them same.

any help would be very greatful.

cheers
 
J

Jari Williamsson

Chris said:
Hi i'm completely new to ruby but have some experience in java. First
thing first, whats the best version of ruby to download and where from?
I have downloaded ruby fxri for windows. Also i have tried to make a
small program on this type of ruby but can't find out how to compile it.
I can make a puts statedment work in the real time area and i have scite
text editor. but i am trying to get ruby to read in a file of references
and then just output them same.

As a beginner on Windows, I guess you first want the one-click installer.

Ruby is a dynamic interpreted language, not a compiled one, although
there are compilers in development (such as for JRuby). To run a Ruby
app, you normally just run:
ruby yourfile.rb
...from the command line.

(But you can bundle your script projects to an EXE file with
RubyScript2Exe, however.)

Perhaps you always want NetBeans if you're used to Java and having your
programs in projects/IDE.


Best regards,

Jari Williamsson
 
J

Joseph Lenton

Chris said:
Hi i'm completely new to ruby but have some experience in java. First
thing first, whats the best version of ruby to download and where from?
I have downloaded ruby fxri for windows. Also i have tried to make a
small program on this type of ruby but can't find out how to compile it.
I can make a puts statedment work in the real time area and i have scite
text editor. but i am trying to get ruby to read in a file of references
and then just output them same.

any help would be very greatful.

cheers

Ruby is interpreted not compiled and you just run the scripts directly.
If you want to compile your code for distribution there is
RubyScript2Exe, although as far as I'm aware it doesn't actually compile
your code and instead just puts it inside a .exe with a Ruby VM (and
some other stuff too).

This topic has also been discussed a lot on Ruby Forum so if you do a
search you will find lots and lots of info.
 
R

Robert Klemme

As a beginner on Windows, I guess you first want the one-click installer.

Not necessarily. I make good use of cygwin's Ruby package.

gvim also nicely supports Ruby.

Kind regards

robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Staff online

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top