Module: Reek::Context::MethodParameters Private
- Defined in:
- lib/reek/context/method_context.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
The parameters in a method’s definition.
Instance Method Summary collapse
- #default_assignments ⇒ Object private
Instance Method Details
#default_assignments ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
11 12 13 14 15 16 17 |
# File 'lib/reek/context/method_context.rb', line 11 def default_assignments result = [] each do |exp| result << exp[1..2] if exp.optional_argument? end result end |