├── README.md ├── extract-class ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── extract-method ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── form-template-method ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── hide-delegate ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── introduce-assertion ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── introduce-null-object ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── move-field ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── parameterize-method ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── preserve-whole-object ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── pull-up-method ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── rename-method ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── replace-array-with-object ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── replace-method-with-method-object ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── replace-temp-with-query ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── replace-type-code-with-module-extension ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── replace-type-code-with-polymorphism ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb ├── replace-type-code-with-state-strategy ├── Rakefile ├── lib │ ├── after.rb │ └── before.rb └── test │ └── test.rb └── separate-query-from-modifier ├── .DS_Store ├── Rakefile ├── lib ├── after.rb └── before.rb └── test └── test.rb /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/README.md -------------------------------------------------------------------------------- /extract-class/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/extract-class/Rakefile -------------------------------------------------------------------------------- /extract-class/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/extract-class/lib/after.rb -------------------------------------------------------------------------------- /extract-class/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/extract-class/lib/before.rb -------------------------------------------------------------------------------- /extract-class/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/extract-class/test/test.rb -------------------------------------------------------------------------------- /extract-method/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/extract-method/Rakefile -------------------------------------------------------------------------------- /extract-method/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/extract-method/lib/after.rb -------------------------------------------------------------------------------- /extract-method/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/extract-method/lib/before.rb -------------------------------------------------------------------------------- /extract-method/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/extract-method/test/test.rb -------------------------------------------------------------------------------- /form-template-method/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/form-template-method/Rakefile -------------------------------------------------------------------------------- /form-template-method/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/form-template-method/lib/after.rb -------------------------------------------------------------------------------- /form-template-method/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/form-template-method/lib/before.rb -------------------------------------------------------------------------------- /form-template-method/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/form-template-method/test/test.rb -------------------------------------------------------------------------------- /hide-delegate/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/hide-delegate/Rakefile -------------------------------------------------------------------------------- /hide-delegate/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/hide-delegate/lib/after.rb -------------------------------------------------------------------------------- /hide-delegate/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/hide-delegate/lib/before.rb -------------------------------------------------------------------------------- /hide-delegate/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/hide-delegate/test/test.rb -------------------------------------------------------------------------------- /introduce-assertion/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/introduce-assertion/Rakefile -------------------------------------------------------------------------------- /introduce-assertion/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/introduce-assertion/lib/after.rb -------------------------------------------------------------------------------- /introduce-assertion/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/introduce-assertion/lib/before.rb -------------------------------------------------------------------------------- /introduce-assertion/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/introduce-assertion/test/test.rb -------------------------------------------------------------------------------- /introduce-null-object/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/introduce-null-object/Rakefile -------------------------------------------------------------------------------- /introduce-null-object/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/introduce-null-object/lib/after.rb -------------------------------------------------------------------------------- /introduce-null-object/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/introduce-null-object/lib/before.rb -------------------------------------------------------------------------------- /introduce-null-object/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/introduce-null-object/test/test.rb -------------------------------------------------------------------------------- /move-field/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/move-field/Rakefile -------------------------------------------------------------------------------- /move-field/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/move-field/lib/after.rb -------------------------------------------------------------------------------- /move-field/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/move-field/lib/before.rb -------------------------------------------------------------------------------- /move-field/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/move-field/test/test.rb -------------------------------------------------------------------------------- /parameterize-method/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/parameterize-method/Rakefile -------------------------------------------------------------------------------- /parameterize-method/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/parameterize-method/lib/after.rb -------------------------------------------------------------------------------- /parameterize-method/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/parameterize-method/lib/before.rb -------------------------------------------------------------------------------- /parameterize-method/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/parameterize-method/test/test.rb -------------------------------------------------------------------------------- /preserve-whole-object/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/preserve-whole-object/Rakefile -------------------------------------------------------------------------------- /preserve-whole-object/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/preserve-whole-object/lib/after.rb -------------------------------------------------------------------------------- /preserve-whole-object/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/preserve-whole-object/lib/before.rb -------------------------------------------------------------------------------- /preserve-whole-object/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/preserve-whole-object/test/test.rb -------------------------------------------------------------------------------- /pull-up-method/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/pull-up-method/Rakefile -------------------------------------------------------------------------------- /pull-up-method/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/pull-up-method/lib/after.rb -------------------------------------------------------------------------------- /pull-up-method/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/pull-up-method/lib/before.rb -------------------------------------------------------------------------------- /pull-up-method/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/pull-up-method/test/test.rb -------------------------------------------------------------------------------- /rename-method/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/rename-method/Rakefile -------------------------------------------------------------------------------- /rename-method/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/rename-method/lib/after.rb -------------------------------------------------------------------------------- /rename-method/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/rename-method/lib/before.rb -------------------------------------------------------------------------------- /rename-method/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/rename-method/test/test.rb -------------------------------------------------------------------------------- /replace-array-with-object/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-array-with-object/Rakefile -------------------------------------------------------------------------------- /replace-array-with-object/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-array-with-object/lib/after.rb -------------------------------------------------------------------------------- /replace-array-with-object/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-array-with-object/lib/before.rb -------------------------------------------------------------------------------- /replace-array-with-object/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-array-with-object/test/test.rb -------------------------------------------------------------------------------- /replace-method-with-method-object/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-method-with-method-object/Rakefile -------------------------------------------------------------------------------- /replace-method-with-method-object/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-method-with-method-object/lib/after.rb -------------------------------------------------------------------------------- /replace-method-with-method-object/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-method-with-method-object/lib/before.rb -------------------------------------------------------------------------------- /replace-method-with-method-object/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-method-with-method-object/test/test.rb -------------------------------------------------------------------------------- /replace-temp-with-query/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-temp-with-query/Rakefile -------------------------------------------------------------------------------- /replace-temp-with-query/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-temp-with-query/lib/after.rb -------------------------------------------------------------------------------- /replace-temp-with-query/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-temp-with-query/lib/before.rb -------------------------------------------------------------------------------- /replace-temp-with-query/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-temp-with-query/test/test.rb -------------------------------------------------------------------------------- /replace-type-code-with-module-extension/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-type-code-with-module-extension/Rakefile -------------------------------------------------------------------------------- /replace-type-code-with-module-extension/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-type-code-with-module-extension/lib/after.rb -------------------------------------------------------------------------------- /replace-type-code-with-module-extension/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-type-code-with-module-extension/lib/before.rb -------------------------------------------------------------------------------- /replace-type-code-with-module-extension/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-type-code-with-module-extension/test/test.rb -------------------------------------------------------------------------------- /replace-type-code-with-polymorphism/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-type-code-with-polymorphism/Rakefile -------------------------------------------------------------------------------- /replace-type-code-with-polymorphism/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-type-code-with-polymorphism/lib/after.rb -------------------------------------------------------------------------------- /replace-type-code-with-polymorphism/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-type-code-with-polymorphism/lib/before.rb -------------------------------------------------------------------------------- /replace-type-code-with-polymorphism/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-type-code-with-polymorphism/test/test.rb -------------------------------------------------------------------------------- /replace-type-code-with-state-strategy/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-type-code-with-state-strategy/Rakefile -------------------------------------------------------------------------------- /replace-type-code-with-state-strategy/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-type-code-with-state-strategy/lib/after.rb -------------------------------------------------------------------------------- /replace-type-code-with-state-strategy/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-type-code-with-state-strategy/lib/before.rb -------------------------------------------------------------------------------- /replace-type-code-with-state-strategy/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/replace-type-code-with-state-strategy/test/test.rb -------------------------------------------------------------------------------- /separate-query-from-modifier/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/separate-query-from-modifier/.DS_Store -------------------------------------------------------------------------------- /separate-query-from-modifier/Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/separate-query-from-modifier/Rakefile -------------------------------------------------------------------------------- /separate-query-from-modifier/lib/after.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/separate-query-from-modifier/lib/after.rb -------------------------------------------------------------------------------- /separate-query-from-modifier/lib/before.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/separate-query-from-modifier/lib/before.rb -------------------------------------------------------------------------------- /separate-query-from-modifier/test/test.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/ruby-refactoring/HEAD/separate-query-from-modifier/test/test.rb --------------------------------------------------------------------------------