Created
July 20, 2010 17:14
-
-
Save ymendel/483237 to your computer and use it in GitHub Desktop.
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
class Visit | |
# has date, place | |
def check_something(blah) | |
# do stuff, very similar to Place#check_something | |
# and in fact using my own date instead of the argument | |
end | |
end | |
class Place | |
def check_something(date) | |
# do stuff | |
end | |
end | |
def check_something(place, date = Date.today) | |
place.check_something(date) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment