Rubyで簡単なコードを書いてみる -その3-def hello puts 'こんにちは' puts 'それではまた' end hello # メソッドhelloを宣言 # 最後に関数helloを呼び出す