RubyGems.org

By including the NamedParameters module into your class/module the 'named_parameters' macro is available. Optional parameters with default values can be as easily defined as mandatory parameters. Your actual method definition does not change at all

installgem install named_parameters
Authors

Marvin Ede

8,257 total downloads 838 for this version
Owners

C3d65709226a29b87f0be89c5d54687a

Gemfile
gem 'named_parameters', '~> 1.1.1'
Versions
  1. 1.1.1 August 9, 2012 (8 KB)
  2. 1.1.0 August 6, 2012 (8 KB)
  3. 1.0.2 August 5, 2012 (7 KB)
  4. 1.0.1 August 5, 2012 (7 KB)
  5. 1.0.0 August 5, 2012 (7 KB)
Show all versions (10 total)
Development Dependencies
  1. rspec < 3.0.0, >= 2.9.0