2008-02-26から1日間の記事一覧
こんな感じか. % cat -n hoge.rb 1 def test(a, b) 2 a + b 3 end 4 5 6 def main() 7 if ARGV.length > 3 8 test(1, test()) 9 else 10 test(1, 2) 11 end 12 end 13 14 Process.exit(main()) % ./truby hoge.rb hoge.rb:8: number of arguments mismatch(…