Module: RuboCop::Cop::EndlessMethodBodyHelp
- Defined in:
- lib/rubocop/cop/mixin/endless_method_body_help.rb
Overview
Common functionality for checking whether a method body can become the body of an endless method definition without changing its meaning.
Constant Summary collapse
- STATEMENT_BODY_PARENT_TYPES =
%i[ resbody when in_pattern while until for class module sclass any_block ].freeze