class RuboCop::Cop::Highlands::NoTimeout
Constants
- MSG
Public Instance Methods
on_send(node)
click to toggle source
# File lib/rubocop/cop/highlands/no_timeout.rb, line 12 def on_send(node) return unless node.source.start_with?('Timeout.timeout') add_offense(node, message: MSG) end