From aafc9235c4360d5126560ac338ad227fc35169e5 Mon Sep 17 00:00:00 2001 From: Obimbo07 Date: Wed, 20 Dec 2023 18:36:58 +0300 Subject: [PATCH] fixed-conflicting-app.rb --- app.rb | 4 ++-- classes/author.rb | 2 +- classes/game.rb | 3 +-- main.rb | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app.rb b/app.rb index 0e00662..43f73f5 100644 --- a/app.rb +++ b/app.rb @@ -5,7 +5,7 @@ require './classes/game' require './classes/source' require './classes/author' - require './classes/movie' +require './classes/movie' require './classes/source' class App @@ -25,7 +25,7 @@ def list_all_books else @books.each do |book| puts "ID: #{book.id}, Author: #{book.author.first_name}, Publisher: #{book.publisher}, - Cover state: #{book.cover_ + Cover state: #{book.cover_state}" end end end diff --git a/classes/author.rb b/classes/author.rb index 8edd317..d4a9f9a 100644 --- a/classes/author.rb +++ b/classes/author.rb @@ -1,4 +1,4 @@ -require_relative 'item' +require_relative './item' class Author attr_accessor :id, :first_name, :last_name, :items diff --git a/classes/game.rb b/classes/game.rb index dcfe7fd..8ac6853 100644 --- a/classes/game.rb +++ b/classes/game.rb @@ -1,5 +1,4 @@ -# game.rb -require_relative 'item' +require_relative './item' class Game < Item attr_accessor :multiplayer, :last_played_at diff --git a/main.rb b/main.rb index bd8206f..7f68f66 100644 --- a/main.rb +++ b/main.rb @@ -1,4 +1,4 @@ -require_relative 'app' +require './app' class Menu def initialize(app)