RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Class methods do not exist in Ruby

A fun little TIL moment I had while looking at the Ruby source code.

https://arumoy-shome.github.io/class-methods-do-not-exist-in-ruby/

Comments

Nice info but just to be clear, according to wikipedia “class methods are methods that are called on a class rather than an instance”. So IMO ruby does have class methods, they’re just implemented as singleton methods.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in