There isn’t any way to have a class name starting with lowercase letter.
I was trying it as
SyntaxError: compile error
class/module name must be CONSTANT
so then i tried
a = Class.new
this shows that “a” is now a reference to the class #Class:0x2de1f00
the Class object
B = Class.new
that works absolutely fine.
The point is if we try to assign as
warning: already intialized constant B … thats fine
and now if i check a as
so where is the original class of a that was #Class:0x2de1f00 … and
come the assignment happens from RIGHT-to-LEFT ?
any idea ?