Method: RuboCop::Cop::Style::AmbiguousEndlessMethodDefinition#ambiguous_endless_method_body

Defined in:
lib/rubocop/cop/style/ambiguous_endless_method_definition.rb

#ambiguous_endless_method_body(node) ⇒ Object



40
41
42
43
44
45
46
# File 'lib/rubocop/cop/style/ambiguous_endless_method_definition.rb', line 40

def_node_matcher :ambiguous_endless_method_body, "^${\n  (if _ <def _>)\n  ({and or} def _)\n  ({while until} _ def)\n}\n"