What is the better style:
def method; some code end
or
def method() some code end
and why?
The preferred way is to not define a method in one line, as @Romain said.
def method
some code
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With