Method: RuboCop::Cop::Naming::ConstantName#class_or_struct_return_method?
- Defined in:
- lib/rubocop/cop/naming/constant_name.rb
#class_or_struct_return_method?(node) ⇒ Object
27 28 29 30 31 |
# File 'lib/rubocop/cop/naming/constant_name.rb', line 27 def_node_matcher :class_or_struct_return_method?, <<~PATTERN (send (const _ {:Class :Struct}) :new ...) PATTERN |