in ruby programming ~ read.

Class objects in Ruby

Everything in ruby is an object, even classes are objects, the classes that we create for example Person, Animal, etc. are instances of class Class.

A = Class.new do  
  def hello_world
    puts 'hello world'
  end
end

a = A.new  
a.hello_world

Class.new creates a new class which can create objects on its own.