[Solved] The most annoying quirk of class methods in ruby ever
Like many object-oriented languages, Ruby has separation between methods in the class context and those in the instance context: class Example def self.a_class_method “I’m a class method!” end def an_instance_method “I’m an instance method!” end end When calling them using their native context it works: Example.a_class_method Example.new.an_instance_method When calling them in the wrong context you … Read more