Skip to content

Commit

Permalink
fixed-conflicting-app.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Obimbo07 committed Dec 20, 2023
1 parent c8194cc commit aafc923
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
require './classes/game'
require './classes/source'
require './classes/author'
require './classes/movie'
require './classes/movie'
require './classes/source'

class App
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion classes/author.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative 'item'
require_relative './item'

class Author
attr_accessor :id, :first_name, :last_name, :items
Expand Down
3 changes: 1 addition & 2 deletions classes/game.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# game.rb
require_relative 'item'
require_relative './item'

class Game < Item
attr_accessor :multiplayer, :last_played_at
Expand Down
2 changes: 1 addition & 1 deletion main.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative 'app'
require './app'

class Menu
def initialize(app)
Expand Down

0 comments on commit aafc923

Please sign in to comment.