[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

New to ruby

Chris Daves

12/11/2007 7:47:00 PM

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
--
Posted via http://www.ruby-....

4 Answers

Jari Williamsson

12/11/2007 8:54:00 PM

0

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 Williamsson

Joseph Lenton

12/11/2007 9:04:00 PM

0

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.
--
Posted via http://www.ruby-....

Robert Klemme

12/11/2007 10:05:00 PM

0

On 11.12.2007 21:54, Jari Williamsson 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

Tim Rowe

12/12/2007 7:26:00 PM

0

"Chris Daves" <chrisd27@hotmail.com> wrote in message
news:3c00127e880403852b44732e35759649@ruby-forum.com...
> 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.

You can run from SciTE, of course -- Tools | Go.