RubyGems Navigation menu

named-parameters 0.0.8

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:
=

安装:
=

版本列表:

  1. 0.0.21 December 17, 2010 (23.0 KB)
  2. 0.0.20 December 12, 2010 (22.0 KB)
  3. 0.0.19 December 12, 2010 (21.5 KB)
  4. 0.0.18 December 10, 2010 (21.0 KB)
  5. 0.0.17 December 08, 2010 (21.0 KB)
  6. 0.0.8 November 23, 2010 (18.5 KB)
显示所有版本 (共 23 个)

Development 依赖 (2):

rspec >= 1.2.9
yard >= 0

所有者:

作者:

  • Juris Galang

SHA 256 校验和:

=

下载总量 95,561

这个版本 3,600

版本发布:

许可:

需要的 Ruby 版本:

链接: