RubyGems Navigation menu

named-parameters 0.0.7

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.

Gemfile:
= Copy to clipboard Copied!

instalar:
=

Versões:

  1. 0.0.21 - December 17, 2010 (23 KB)
  2. 0.0.20 - December 12, 2010 (22 KB)
  3. 0.0.19 - December 12, 2010 (21,5 KB)
  4. 0.0.18 - December 10, 2010 (21 KB)
  5. 0.0.17 - December 08, 2010 (21 KB)
  6. 0.0.7 - November 18, 2010 (18 KB)
Mostrar todas as versões (23)

Development Dependencies (2):

rspec >= 1.2.9
yard >= 0

Donos:

Autores:

  • Juris Galang

SHA 256 checksum:

171ec5ef7242dca9cd5ca01c85f08b3748028e213e1f638f54d8f78306e97ba6

Total de downloads 92.240

Desta versão 3.493

Licenças:

N/A

Versão Requerida do Ruby: Nenhum

Links: