class Rubocop::Cop::Style::Attr
This cop checks for uses of Module#attr.
Constants
- MSG
Public Instance Methods
on_send(node)
click to toggle source
Calls superclass method
# File lib/rubocop/cop/style/attr.rb, line 10 def on_send(node) if command?(:attr, node) add_offence(:convention, node.loc.selector, MSG) end super end