Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
何らかの理由で実行すると:
名前 = gets.chomp
名前を付ける
エラーが発生します:
gets:1:in <main>': undefined methodchomp' for nil:NilClass (NoMethodError)
<main>': undefined method
.chomp を削除して実行すると:
名前 = 取得
プロンプトもエラーも表示されず、コンソールには終了時間が表示されるだけです。私は何を間違っていますか?
ちなみに、私はRubyで構成されたSublimeを使用しています