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)