|
|
|
|
|
by knuckle_cake
5883 days ago
|
|
Interesting, but it looks to require irb, heavily pollutes the global namespace with commands, and assumes I want to use --options-with-dashes. This is another 'close, but not quite' example. The current implementation is that I have a hardware instance (like a CPU) that I want to monitor. To do that, I create a new monitor object, and tell it to monitor the hardware instance, and the monitor will mix itself in from there. It's not good if extra methods show up in the global namespace just for command parsing within a single module of the app. The monitor is just a part of this application, and a part that will not be used often by most users. Everything I see feels like it's inches from what I really need. So close yet so far :) |
|
otoh, there are some simple ones you could possible customize: i once studied and modified Choice (by Chris Wainstrath).
I'd really like to know if you find something that helps you, or what you did eventually.