Can I return nothing in ruby?
Just for educational purpose
For example:
myarray = [1,2,3] myarray << some_method def some_method
Nothing does not mean anything to ruby from what i know :) You can define your own nothing though and throw it as much as possible. In ruby, if you do not explicitly return something, the last evaluated expression is returned.