What is difference between class and Class.new & module and Module.new?
I know that:
Class.new/Module.newcreate an anonymousclass/module. When we assign it to constant for the first time it becomes name of thatclass/module.class/moduledo this automatically.When we want to inherit, we can pass an argument:
Class.new(ancestor). When we don't specify an ancestor, it is set to theObject.classuse this syntax:class A < AncestorClass.newreturns anobject.class Areturnsnil. Same goes formodules.
Did I miss something?