-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix linter: extend used outside of class or module
- Loading branch information
1 parent
6c577d9
commit ee97f2a
Showing
3 changed files
with
15 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
require_relative 'modules/display_menu' | ||
require_relative 'modules/create_persons' | ||
require_relative 'modules/create_books' | ||
require_relative 'modules/lists' | ||
|
||
class App | ||
extend DisplayMenu | ||
extend CreatePerson | ||
extend CreateBook | ||
extend Lists | ||
|
||
def self.run | ||
loop do | ||
display_menu | ||
choice = gets.chomp.to_i | ||
handle_choice(choice) | ||
break if choice == 7 | ||
end | ||
choice = handle_choice(choice) while choice != 7 | ||
puts 'Thanks for using the School Library!' | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.