Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [FEATURE] Added declared_parameters_for method.
- [FEATURE] You can now limit/filter the list of declared parameters based on type: has_named_parameters :foobar, :required => :a, :optional => [ :b, :c ] def foobar declared_parameters(:required).inspect end foobar # => [ :a ]
- Loading branch information
1 parent
4991707
commit 24fffda
Showing
3 changed files
with
82 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters