Newer
Older
Ruby / true-last.rb
@ABE Koshun ABE Koshun on 5 Feb 2022 334 bytes 2022-02-05 10:07:36
#!/usr/bin/env ruby
# coding: utf-8
def home
  sleep(1)
  while true
    print("0 終了\n")
    print("1 レシピ\n")
    print("2 メモ帳\n")
    
    input=gets.to_f
    if input == 0 then
      break
    elsif input == 1 then
      system"ruby the.rb"
    elsif input == 2 then
      system"ruby end.rb"
    end
  end
end
home