Class: RubyCop::Ruby::Params

Inherits:
List
  • Object
show all
Defined in:
lib/ruby_cop/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.



4
5
6
# File 'lib/ruby_cop/ruby/params.rb', line 4

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