class RuboCop::Cop::CableReady::UnusedCableReadyCall
Constants
- MSG
Public Instance Methods
on_send(definition)
click to toggle source
# File lib/rubocop/cop/cable_ready/unused_cable_ready_call.rb, line 9 def on_send(definition) return if definition.method_name != :cable_ready call = definition.ancestors.first return if call.instance_of? RuboCop::AST::SendNode add_offense(definition) end