Execute Ruby code in sublime text 2

后端 未结 5 1453
栀梦
栀梦 2020-12-15 03:40

How can I run a Ruby file with ST2 and see the ouput? I thought I should use the build command. But if I have this:

def foobar
  \"hello world\"
end

puts fo         


        
5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 04:03

    I'm using windows here, but make sure you have selected the correct build system: "Tools > Build System > Ruby", then just press CTRL+B

提交回复
热议问题