Skip to content

Instantly share code, notes, and snippets.

@alloy
Created November 19, 2010 23:24
Show Gist options
  • Save alloy/707398 to your computer and use it in GitHub Desktop.
Save alloy/707398 to your computer and use it in GitHub Desktop.
Method implementation
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