How do I run a text.txt or a analyzer.rb

Hi, everyone.

How do I run a .rb file in command prompt? I was in the command prompt,
using irb, but I don't understand why my .rb files looks like a regular
text file. And I don't know how to execute them either.

Is there something wrong with my ruby installation or something?

Thanks,

···

--
Posted via http://www.ruby-forum.com/.

Type

  ruby "your_file_here.rb"

to run a Ruby file. And yes, Ruby sourcecode files are in fact regular
text files, they're nothing special. Ruby code doesn't have to be
compiled as C code does.

Vale,
Marvin

···

Am 31.07.2010 20:40, schrieb Tony Mr:

Hi, everyone.

How do I run a .rb file in command prompt? I was in the command prompt,
using irb, but I don't understand why my .rb files looks like a regular
text file. And I don't know how to execute them either.

Is there something wrong with my ruby installation or something?

Thanks,