You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixesrubocop#11102.
This PR fixes an error for `Style/AccessModifierDeclarations`
when using access modifier in a block.
It wouldn't be expected to enforce a style on how it's used as a
method call within a block like this:
```ruby
module MyModule
singleton_methods.each { |method| module_function(method) }
end
```
Fixes#11102.
This PR fixes an error for `Style/AccessModifierDeclarations`
when using access modifier in a block.
It wouldn't be expected to enforce a style on how it's used as a
method call within a block like this:
```ruby
module MyModule
singleton_methods.each { |method| module_function(method) }
end
```
Given this code:
Running
rubocop
produces this error:The text was updated successfully, but these errors were encountered: