+ 2

How can I build Ruby in Sublime text 3? I already have Ruby installed.

I downloaded Ruby 2.7 and can't build in sublime text 3. Can someone please help me?

20th Jul 2020, 1:00 PM
Chinyere Unamba
Chinyere Unamba - avatar
5 Respuestas
+ 2
Sandra Meyer I appreciate your answer but it didn't work. I mean Ruby. Ruby's file is .rb not .r . Please can you make your answer more detailed.
20th Jul 2020, 7:22 PM
Chinyere Unamba
Chinyere Unamba - avatar
+ 2
Damn, I should really stop mixing languages within a single day 🙈 But for Ruby it works the same way, save as .rb and execute ruby scriptname.rb - aren't you working with a terminal?
20th Jul 2020, 7:43 PM
Sandra Meyer
Sandra Meyer - avatar
+ 2
Yes I get that, it works that way but, I want the output in the Sublime text console below.
20th Jul 2020, 10:26 PM
Chinyere Unamba
Chinyere Unamba - avatar
+ 2
Sorry, never tried to do that, I use sublime only as editor.
20th Jul 2020, 10:36 PM
Sandra Meyer
Sandra Meyer - avatar
+ 1
Sublime is a text editor. You just need to save your file as .R file and then you can execute it.
20th Jul 2020, 1:24 PM
Sandra Meyer
Sandra Meyer - avatar