Class: Rubycop::Analyzer::Ruby::RescueParams
- Defined in:
- lib/rubycop/analyzer/ruby/params.rb
Instance Attribute Summary
Attributes inherited from List
Instance Method Summary collapse
-
#initialize(types, var) ⇒ RescueParams
constructor
A new instance of RescueParams.
Methods inherited from List
Methods inherited from Node
Constructor Details
#initialize(types, var) ⇒ RescueParams
Returns a new instance of RescueParams.
11 12 13 14 15 16 17 18 19 |
# File 'lib/rubycop/analyzer/ruby/params.rb', line 11 def initialize(types, var) if types errors = Ruby::Array.new(types) errors = Ruby::Assoc.new(errors, var) if var super(errors) else super() end end |