re: When do you create a function or method? VIEW POST

re: Which language is this?

Interesting. Few languages have this feature. So does that make the function an actual method but outside the class?

I edited by replacing function with def keyword.
Basically, instead of making class as global, use more functions as global primitives.

Put those right in Ruby files. Then when you require that file, you can use your functions.

So just one extra file where you put all functions (or methods in this case) related to that class?

code of conduct - report abuse