Student Example 1: Refactoring CLI Gem

Permalinkarrow-up-right

Join GitHub today

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Sign uparrow-up-right

Branch: master

Find filearrow-up-right Copy path

Find filearrow-up-right Copy path

Fetching contributors…

Cannot retrieve contributors at this time

18 lines (10 sloc) 715 Bytes

Rawarrow-up-right Blamearrow-up-right Historyarrow-up-right

Objectives:

  • Refactoring a gem.

  • Delegating responsibility to the appropriate class.

Video

<iframe width="100%" height="720" src="https://www.youtube.com/embed/JEL_PXr74qQ?rel=0&showinfo=0arrow-up-right" frameborder="0" allowfullscreen></iframe>

MP4arrow-up-right

Original Codearrow-up-right

Refactored Codearrow-up-right

Diffarrow-up-right

View Refactoring CLI Gemarrow-up-right on Learn.co and start learning to code for free.

Last updated