Entries tagged: tips
May 09
Overriding class methods in Ruby
Class methods in Ruby are methods that work without being tied to any particular object (Java and PHP5 have static methods for similiar purpose). Class methods are distinguished from instance methods by placing the class name and a period in front of the method name. One thing that may not be obvious if you want to inherit class method is how to call equally named class method from parent class.
I am Bojan Mihelac and this blog is dedicated to share code, thoughts, tools and advices I came up with while working at