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
Fix joining single line Ruby methods without arguments
Joining single-line Ruby method _without_ arguments into an endless
method definition was not working as the regexp pattern expected the
`def` always to accept parenthesized arguments.
Example:
```ruby
def foo()
bar
end
```
Would be joined to:
```ruby
def foo() = bar
```
However, the following, which is the idiomatic way to write Ruby methods
without arguments, would not:
```ruby
def foo
bar
end
```
0 commit comments