Created
November 19, 2010 23:24
-
-
Save alloy/707398 to your computer and use it in GitHub Desktop.
Method implementation
This file contains 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 make_pony_eyes_pink | |
before, Pony.eye_color = Pony.eye_color, :pink | |
yield | |
ensure | |
Pony.eye_color = before | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment