Rubygems | Latest Versions for namedargumentshttps://rubygems.org/gems2023-09-28T02:01:24Znamedarguments (0.0.5)https://rubygems.org/gems/namedarguments/versions/0.0.52009-07-25T18:06:04ZRyan DavisThe author was too lazy to write a summary
The author was too lazy to write a description namedarguments (0.0.3)https://rubygems.org/gems/namedarguments/versions/0.0.32009-07-25T18:06:04ZJames M MooreProvide named arguments (hashes) to constructors to initialize attributes.
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: namedarguments (0.0.2)https://rubygems.org/gems/namedarguments/versions/0.0.22009-07-25T18:06:04ZJames M MooreProvide named arguments (hashes) to constructors to initialize attributes.
The author was too lazy to write a description namedarguments (0.0.1)https://rubygems.org/gems/namedarguments/versions/0.0.12009-07-25T18:06:04ZJames M MooreProvide named arguments (hashes) to constructors to initialize attributes.
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: