Method: RuboCop::Cop::Lint::RescueException#targets_exception?
- Defined in:
- lib/rubocop/cop/lint/rescue_exception.rb
#targets_exception?(rescue_arg_node) ⇒ Boolean
20 21 22 |
# File 'lib/rubocop/cop/lint/rescue_exception.rb', line 20 def targets_exception?(rescue_arg_node) rescue_arg_node.const_name == 'Exception' end |