Can I return nothing in ruby?
Just for educational purpose
For example:
myarray = [1,2,3] myarray << some_method def some_method
No, you can't return nothing. In ruby you always return something (even if it's just nil) - no way around that.
nil