Skip to content

Instantly share code, notes, and snippets.

@bezelga
Created September 3, 2014 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bezelga/f95433412bf97cd2f90b to your computer and use it in GitHub Desktop.
Save bezelga/f95433412bf97cd2f90b to your computer and use it in GitHub Desktop.
module Tod
class << self
attr_accessor :repo
def configure
yield self
end
def repo
@repo ||= TasksRepository::InMemory.new
end
def add_task(title)
UseCases::AddTask.add(title)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment