書籍『リファクタリング:Rubyエディション』の第一章の写経リポジトリです。
テストをRSpecで書きました。
「章番号_節番号_end」の形式で、節の終わりごとにタグを打ってあります。(例: 第一章第一節の読了時点 => 1_1_end)
書籍のコードのうち、誤記と思える箇所は、適宜変更しています。commmit messageに記録してあります。
例:
commit af7007789be779035c83fb19a7d9c784791441a1
Author: matzryo <matzryo@example.com>
Date: Sat Nov 25 13:54:38 2017 +0900
[update] 「モジュールの抽出」(Extract Module)
module RegularPriceを抽出
誤記? "module Price" => "module RegularPrice"
ライセンスとかよくわかりません。ご自由にお使いください。