Advertisement
Guest User

Untitled

a guest
Feb 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. require_relative 'cookbook' # You need to create this file!
  2. require_relative 'controller' # You need to create this file!
  3. require_relative 'router'
  4.  
  5. # method to open the file
  6. csv_file = File.join(__dir__, 'recipes.csv')
  7. cookbook = Cookbook.new(csv_file)
  8. controller = Controller.new(cookbook)
  9.  
  10. router = Router.new(controller)
  11.  
  12. # Start the app
  13. router.run
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement