20分ではじめるRubyPico を読む「複数行にまたがるプログラム」
irb - Interactive Ruby Shell irb:000> def hello; puts "Hello World!"; end => :hello irb:001> hello Hello World! => nil irb:002> def hello line 1: syntax error, unexpected $end, expecting ';' or '\n' irb:003>
CRubyだと
>> def hello >> puts "Hello World!" >> end => nil >> hello Hello World! => nil
ふと、日本語どうなんだろうと思ったので確認
irb:000> puts "こんにちは" こんにちは => nil