Skip to content

Instantly share code, notes, and snippets.

@ymendel
Created July 20, 2010 17:14
Show Gist options
  • Save ymendel/483237 to your computer and use it in GitHub Desktop.
Save ymendel/483237 to your computer and use it in GitHub Desktop.
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