Module: RuboCop::Cop::RescueNode
- Included in:
- Lint::DuplicateRescueException, Lint::ShadowedException, Style::ParallelAssignment, Style::RescueModifier, Style::RescueStandardError
- Defined in:
- lib/rubocop/cop/mixin/rescue_node.rb
Overview
Common functionality for checking ‘rescue` nodes.
Instance Method Summary collapse
Instance Method Details
#modifier_locations ⇒ Object
7 8 9 |
# File 'lib/rubocop/cop/mixin/rescue_node.rb', line 7 def modifier_locations @modifier_locations ||= processed_source.tokens.select(&:rescue_modifier?).map!(&:pos) end |