Module: RR::KeywordArguments
- Defined in:
- lib/rr/keyword_arguments.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.accept_kwargs?(subject_class, method_name) ⇒ Boolean
14 15 16 17 18 |
# File 'lib/rr/keyword_arguments.rb', line 14 def accept_kwargs?(subject_class, method_name) subject_class.instance_method(method_name).parameters.any? { |t, _| t == :key || t == :keyrest } rescue NameError true end |
Instance Method Details
#fully_supported? ⇒ Boolean
5 6 7 |
# File 'lib/rr/keyword_arguments.rb', line 5 def fully_supported? true end |