メタプロRuby

オープンクラス prepend インクルードしたクラスの下に挿入される Refinements、using 第3章 def refresh(options={}) defaults = {} attributes = [:input, :output, :commands, :print, :quiet, :excepti ...

Rubyの復習

Rubyのお話。忘れがちなのをまとめておく。 [初心者向け] RubyやRailsでリファクタリングに使えそうなイディオムとか便利メソッドとか ソースコードは上の記事からの引用です。 tapの代わりにnewブロックを活用する User.new do ...