Simplify and restructurize Options
commitc84158cb4c9b3f91cc35e54afb8c12c8d9fb577a
authorDag Odenhall <dag.odenhall@gmail.com>
Sat, 26 Apr 2008 08:10:41 +0000 (26 10:10 +0200)
committerDag Odenhall <dag.odenhall@gmail.com>
Sat, 26 Apr 2008 08:10:41 +0000 (26 10:10 +0200)
tree81d9002891d18fb59a872d9004e8bb89639cb619
parentcade3804f561d1efb32bf84e7b6845907fbedf62
Simplify and restructurize Options

* lib/amazing/options.rb: (Options) Inherit from Hash
instead of including enumerable.
(initialize) Move away aspects to private methods.
(each) Dropped, now inherited from Hash.
([]) Inherited from Hash.
([]=) Inherited from Hash.
(initialize_defaults) Set defaults on self here.
(initialize_parser) Set up the parser for self here.
lib/amazing/options.rb