Method: RuboCop::Cop::Naming::MethodName#on_send
- Defined in:
- lib/rubocop/cop/naming/method_name.rb
#on_send(node) ⇒ Object
124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/rubocop/cop/naming/method_name.rb', line 124 def on_send(node) if node.method?(:define_method) || node.method?(:define_singleton_method) handle_define_method(node) elsif new_struct?(node) handle_new_struct(node) elsif define_data?(node) handle_define_data(node) elsif node.method?(:alias_method) handle_alias_method(node) else handle_attr_accessor(node) end end |