Method: RuboCop::Cop::Lint::RaiseException#exception_new_with_message?
- Defined in:
- lib/rubocop/cop/lint/raise_exception.rb
#exception_new_with_message?(node) ⇒ Object
65 66 67 68 |
# File 'lib/rubocop/cop/lint/raise_exception.rb', line 65 def_node_matcher :exception_new_with_message?, <<~PATTERN (send nil? {:raise :fail} (send $(const ${cbase nil?} :Exception) :new ... )) PATTERN |