Hi,
yesterday I installed ruby and I have tested a simple function using
"def" keyword and it worked. Today I tried to associate .rb files to
ruby with these commands:
$ assoc .rb=RubyScript
.rb=RubyScript
It sounds like you're typing Ruby commands (e.g. def) at the Windows
command line. You need to either put the commands in a .rb file and run
that, or type irb and type the commands there. IRB is Interactive Ruby, a
REPL.
···
On Thu, Aug 15, 2013 at 11:43 AM, sahar eb <lists@ruby-forum.com> wrote:
Hi,
yesterday I installed ruby and I have tested a simple function using
"def" keyword and it worked. Today I tried to associate .rb files to
ruby with these commands:
$ assoc .rb=RubyScript
.rb=RubyScript
It sounds like you're typing Ruby commands (e.g. def) at the Windows
command line. You need to either put the commands in a .rb file and run
that, or type irb and type the commands there. IRB is Interactive Ruby,
a
REPL.