Private Classes in RubyThe concept of private, protected and public methods in Ruby is a bit different than it other languages like Java. In Ruby, it is all about which class the person is calling, as classes are objects in ruby. Private Class When a constant is declared private in Ruby, it means this constant can never b
3 min read
Freezing Objects | RubyAny object can be frozen by invoking Object#freeze. A frozen object can not be modified: we can't change its instance variables, we can't associate singleton methods with it, and, if it is a class or module, we can't add, delete, or modify its methods. To test if an object is frozen we can use Objec
2 min read