Built something? We create video reels & spotlights for GitHub projects.Promote your project →
Catalog / fuchu168 / library.rb
Public GitHub Catalog Discovered Sep 28, 2026

fuchu168 / library.rb

Use object-oriented Ruby to model a public library (w/ three classes: Library, Shelf, & Book). The library should be aware of a number of shelves. Each shelf should know what books it contains. Make the book object have "enshelf" and "unshelf" methods that control what shelf the book is sitting on. The library should have a method to report all books it contains. Note: this should not be a Rails app - just a single file with three classes (plus commands at the bottom showing it works) is all that is needed.

View repository on GitHub ↗ View creator profile Browse directory

About this discovery

This repository is cataloged as part of our automated global GitHub synchronization. Full telemetry, velocity snapshots, and code summaries are scheduled for continuous enrichment.

#12821219GitHub System ID
fuchu168Organization / User
PublicVisibility
ActiveCatalog Status

More from fuchu168

FOR MAINTAINERS

Built something? Put it in front of millions of developers.

We make a short reel about your project and post it across YouTube, Instagram, Threads, and X. Send a link, we do the rest.