#!/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 you.rb" elsif input == 2 then system"ruby bukiya.rb" end end end home