This is just a REALLY simple RubyGem that will return a random Mitch Hedberg quote. I decided to do this after taking a course on Ruby - I thought I could force it into being a little more complicated to test some of what I learned.... but this is about as simple as it gets. From a pure OO standpoint, there probably are some issues with this implementation, regardless of how simple it is. The Quote object probably shouldn't handle printing to the screen. But that's how I did it... maybe I'll enhance it that. Maybe make a Printable mix-in that handle outputting in different format?
Required Ruby Version
>= 1.9
Authors
Dan Brooking
Versions
-
1.0.4
-
source
- 1.0.4 source May 24, 2012 (28.5 KB)
-
-
1.0.3
-
source
- 1.0.3 source May 24, 2012 (29 KB)
-
-
1.0.2
-
source
- 1.0.2 source May 23, 2012 (19 KB)
-
-
1.0.1
-
source
- 1.0.1 source May 23, 2012 (18 KB)
-
-
1.0.0
-
source
- 1.0.0 source May 23, 2012 (18 KB)
-