Skip to content

Instantly share code, notes, and snippets.

@richmolj
Last active December 18, 2015 19:28
Show Gist options
  • Save richmolj/5832712 to your computer and use it in GitHub Desktop.
Save richmolj/5832712 to your computer and use it in GitHub Desktop.
class Post
def initialize(backend)
@backend = backend
end
def all
@backend.all
end
end
Post.new(DB::Post.new)
Post.new(Service::Post.new)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment