RubyGems Navigation menu

named-parameters 0.0.6

This gem simulates named-parameters in Ruby. It's a complement to the common Ruby idiom of using `Hash` args to emulate the use of named parameters. It does this by extending the language with a `has_named_parameters` clause that allows a class to declare the parameters that are acceptable to a method. The `has_named_parameters` dictates how the presence of these parameters are enforced and raises an `ArgumentError` when a method invocation is made that violates the rules for those parameters.

Versions:

  1. 0.0.22 - December 16, 2010 (23 KB)
  2. 0.0.21 - December 16, 2010 (23 KB)
  3. 0.0.20 - December 12, 2010 (22 KB)
  4. 0.0.19 - December 11, 2010 (21.5 KB)
  5. 0.0.18 - December 10, 2010 (21 KB)
Show all versions (23 total)

Development Dependencies:

Authors:

  • Juris Galang

Owners:

2d5f093edea7d11c9716d72a0a31126e

Total downloads 43,448

For this version 1,287

Show all versions (23 total)

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'named-parameters', '~> 0.0.6' = Copy to clipboard Copied!

install:
gem install named-parameters -v 0.0.6 = Copy to clipboard Copied!

Links: