Ways of defining class methods
An instance method belongs to a specific instance of a class – in other words, to an individual object. It is also possible to write ‘class methods’. A class method belongs to the class itself.
All Ruby objects are descendents of the Object class... ...and that includes the Class class!
A singleton method is a method which belong to a single object rather than to an entire class. Many of the methods in the Ruby class library are singleton me-thods.
As with an array, you can assign one Hash variable to another, in which case both variables will refer to the same Hash and a change made using either variable will affect that Hash
Just like an array, you can create a hash by creating a new instance of the Hash class:
h1 = Hash.new
h2 = Hash.new("Some kind of ring")