Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_relative "lib/product"
- require_relative "lib/film"
- require_relative "lib/book"
- require_relative "lib/disk"
- require_relative "lib/product_collection"
- dir_path = "C:/Users/saruman/YandexDisk/PROG/Ruby/goodprogrammer/LS-27/magazin_finish/data"
- dir_path2 = Dir[__dir__ + "./data"]
- puts "*"*25 + "Все работает" + "*"*25
- collection = ProductCollection.from_dir(dir_path)
- puts collection.products
- puts "*"*25 + "НЕ работает" + "*"*25
- collection2 = ProductCollection.from_dir(dir_path2)
- puts collection2.products
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement