Adds the ability to call class constructors with a hash of arguments to initialize attributes in the new object. == FEATURES/PROBLEMS: class Snark include NamedArguments attr_accessor :color, :size, :name attribute_defaults :color => 'blue', :size => lambda {|s| some_method_call(s)} required_fields :color, :name required_respond_to :name => :to_s required_kind_of? :size => Fixnum type_conversion :size => Fixnum end s = Snark.new :boojum => 7, :color => red == INSTALL:
Required Ruby Version
> 0.0.0
Authors
James M Moore
Versions
- 0.0.5 June 03, 2007This gem version was imported to RubyGems.org on July 25, 2009. The date displayed was specified by the author in the gemspec. (9 KB)
- 0.0.3 December 06, 2006This gem version was imported to RubyGems.org on July 25, 2009. The date displayed was specified by the author in the gemspec. (8.5 KB)
- 0.0.2 December 05, 2006This gem version was imported to RubyGems.org on July 25, 2009. The date displayed was specified by the author in the gemspec. (8 KB)
- 0.0.1 December 06, 2006This gem version was imported to RubyGems.org on July 25, 2009. The date displayed was specified by the author in the gemspec. (8.5 KB)