Skip to content

Instantly share code, notes, and snippets.

@anewusername1
Created January 18, 2012 21:44
Show Gist options
  • Save anewusername1/1635921 to your computer and use it in GitHub Desktop.
Save anewusername1/1635921 to your computer and use it in GitHub Desktop.
module Visitable
# Accept a visitor object. This will be visited, meaning its 'visit' method
# will be invoked
def accept(visitor)
visitor.visit(self)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment