SHARE
TWEET

Untitled

a guest Feb 17th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top