Split line with dots
This line is too long, split it.
Start file
class VimGolf
def split_me
MyModel.first_method.second_method(arg).third_method(arg.method_one.method_two)
end
end
End file
class VimGolf
def split_me
MyModel
.first_method
.second_method(arg)
.third_method(arg.method_one.method_two)
end
end
View Diff
3c3,6
< MyModel.first_method.second_method(arg).third_method(arg.method_one.method_two)
---
> MyModel
> .first_method
> .second_method(arg)
> .third_method(arg.method_one.method_two)
Solutions by @gfurter:
Unlock 4 remaining solutions by signing in and submitting your own entry