Class: Rubycop::Analyzer::Ruby::Params

Inherits:
List
  • Object
show all
Defined in:
lib/rubycop/analyzer/ruby/params.rb

Instance Attribute Summary

Attributes inherited from List

#elements

Instance Method Summary collapse

Methods inherited from List

#add

Methods inherited from Node

#accept

Constructor Details

#initialize(params, optionals, rest, block) ⇒ Params

Returns a new instance of Params.



5
6
7
# File 'lib/rubycop/analyzer/ruby/params.rb', line 5

def initialize(params, optionals, rest, block)
  super((Array(params) + Array(optionals) << rest << block).flatten.compact)
end