guanjyn
guanjyn

Reputation: 25

How to compile RoR code in Notepad++?

I tried this tutorial but it didn't give me any output.

Upvotes: 1

Views: 509

Answers (2)

Isaac Sanders
Isaac Sanders

Reputation: 108

Ruby is not a compiled language, but an interpreted one. If you want to get an output, you can run irb (Interactive Ruby Shell) in the command line, and enter the code in line-by-line or run it in the command line as ruby FILE_NAME.rb. This should provide the output you are looking for. In my opinion and experience, the command line is the best way to work with ruby.

Upvotes: 1

Preet Sangha
Preet Sangha

Reputation: 65496

Since this is plain ruby code, you should follow this article (Notepad++ with C#) and replace the compiler with the Ruby compiler like RubyScriptToExe, or to the ruby command line interpreter

Upvotes: 0

Related Questions