Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.54 KB | None | 0 0
  1. require_relative "lib/product"
  2. require_relative "lib/film"
  3. require_relative "lib/book"
  4. require_relative "lib/disk"
  5. require_relative "lib/product_collection"
  6. dir_path  =  "C:/Users/saruman/YandexDisk/PROG/Ruby/goodprogrammer/LS-27/magazin_finish/data"
  7. dir_path2  =  Dir[__dir__ + "./data"]
  8.  
  9. puts "*"*25 + "Все работает" + "*"*25
  10. collection = ProductCollection.from_dir(dir_path)
  11. puts collection.products
  12.  
  13. puts "*"*25 + "НЕ работает" + "*"*25
  14. collection2 = ProductCollection.from_dir(dir_path2)
  15. puts collection2.products
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement