Can I return nothing in ruby?
Just for educational purpose
For example:
myarray = [1,2,3] myarray << some_method def some_method
Basically, what you are looking for is a statement. But Ruby doesn't have statements, only expressions. Everything is an expression, i.e. everything returns a value.