I have a Ruby method:
class ClassOfSomeSort
def self.methodOfSomeSort(argument)
...
end
methodOfSomeSort(5)
end
I heard calling the method in the class itself is a bad practise.
Where should I call it? In C++ there's an int main
function where it is done, but where is it done in Ruby?