2021-01-10から1日間の記事一覧
おはよーございます。 Rubyの勉強シリーズ。 バカも休み休み言え!をRubyプログラムにしました。 module Training class Baka def say puts 'バカ' end end end baka = Training::Baka.new count = 0 while count < 10 baka.say sleep 1 count += 1 end slee…
おはよーございます。 Rubyの勉強シリーズ。 バカも休み休み言え!をRubyプログラムにしました。 module Training class Baka def say puts 'バカ' end end end baka = Training::Baka.new count = 0 while count < 10 baka.say sleep 1 count += 1 end slee…