Class: RuboCop::Cop::Betterment::Timeout
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Betterment::Timeout
- Defined in:
- lib/rubocop/cop/betterment/timeout.rb
Constant Summary collapse
- MSG =
'Using Timeout.timeout without a custom exception can prevent rescue blocks from executing'
Instance Method Summary collapse
- #on_send(node) ⇒ Object (also: #on_csend)
Instance Method Details
#on_send(node) ⇒ Object Also known as: on_csend
13 14 15 16 17 |
# File 'lib/rubocop/cop/betterment/timeout.rb', line 13 def on_send(node) return unless timeout_call?(node) add_offense(node) end |