Created
September 3, 2014 15:26
-
-
Save bezelga/f95433412bf97cd2f90b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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