Kernel#gets attempts to read file instead of standard input

前端 未结 2 1260
余生分开走
余生分开走 2020-12-15 03:19

I\'m rather new to Ruby, and today I wrote an application which you can pass arguments to via ARGV. But inside my application, I want to be able to use \"gets\". Problem is,

2条回答
提交回复
热议问题