Newer
Older
Ruby / true-last.rb

#!/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"
    elsif input == 3.141592
      system"ruby otu.rb"
    end
  end
end
home