Created
February 16, 2012 17:45
-
-
Save chriseppstein/1846688 to your computer and use it in GitHub Desktop.
evolution of a refactor -- it just kept getting simpler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def configure(&block) | |
self.tap do |config| | |
yield config | |
end | |
load_api | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def configure(&block) | |
self.tap(&block) | |
load_api | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def configure(&block) | |
yield self | |
load_api | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def configure | |
yield self | |
load_api | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment