By searching some blog and article I found that every class in Ruby is itself an instance of Class. What is the difference between class methods and instance methods and did ruby allow to create object of object?
I try to do something like this but still not able to understand
str = Class.new(String)
=> #<Class:0xb5be1418>
my_str = str.new()
=> ""
my_str = str.new("hello")
=> "hello"
my_str.class
=> #<Class:0xb5be1418>
str.class
=> Class
NOW FULLY CONFUSED so tell me about this