Are there more precise terms for "class methods" in Ruby?

Is there such a thing as a “class method” in Ruby (which is sometimes seen as the equivalent of a static method in other languages), or is it just that it is simply a plain method of a class object Class?

If the latter, are there more precise terms for such methods that the average Ruby developer will still understand?

+3
source share
2 answers

"Class method" is the right term.

For a good explanation, see http://railstips.org/blog/archives/2009/05/11/class-and-instance-methods-in-ruby/ .

+2
source

" " , , , Class ( , , ).

0

Source: https://habr.com/ru/post/1785800/


All Articles