Search⌘ K
AI Features

Library System

Explore how to create a Ruby library system using object-oriented principles. Learn to define classes with shared class variables and methods, parse CSV data into objects, and implement member borrowing and returning of books.

Problem

Implement a simplified library system that supports the following functionality:

  • Initially, the librarian can import book records into the system via a CSV file.

  • Members of the library can borrow and return books.

Format of the CSV file

Other than the first line (header), each row in the CSV file has a comma-separated list of the book titles and the authors. ...

TITLE, AUTHOR
The 4-Hour Workweek, Timothy Ferriss
How to Win Friends and Influence People, Dale Carnegie
# ...
...