STDIN#gets を使うと良い
flag = (ARGV[0] == '--hoge')
while line = STDIN.gets
# ....
end
Go to list of users who liked
More than 5 years have passed since last update.
STDIN#gets を使うと良い
flag = (ARGV[0] == '--hoge')
while line = STDIN.gets
# ....
end
Register as a new user and use Qiita more conveniently
Go to list of users who liked