Skip to content

Instantly share code, notes, and snippets.

@patmaddox
Forked from joshsusser/protocol.rb
Created June 5, 2009 07:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save patmaddox/124140 to your computer and use it in GitHub Desktop.
class RestfulReader
def get(things)
# GET funky restafarian
end
alias_method :fetch, :get
end
class SqlReader
def select(things)
# I hate SQL
end
alias_method :fetch, :get
end
obj.fetch(things)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment