New to ruby

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

Chris Daves wrote:

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.

On 11.12.2007 21:54, Jari W. wrote:

Chris Daves wrote:

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.

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

gvim also nicely supports Ruby.

Kind regards

robert

Chris Daves wrote:

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 W.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs