K
Kedar Mhaswade
The name method of class Class returns the full name of a class (e.g.
<module-name>::<class-name>). Is there a way to get just the simple
name?
e.g.
module CLI
class Yes
# ...
end
# ...
end
What method would return "Yes" (and not "CLI::Yes") when I have an
instance of the Yes class (e.g. CLI::Yes.new.class.<what-method>)?
Thanks in advance.
<module-name>::<class-name>). Is there a way to get just the simple
name?
e.g.
module CLI
class Yes
# ...
end
# ...
end
What method would return "Yes" (and not "CLI::Yes") when I have an
instance of the Yes class (e.g. CLI::Yes.new.class.<what-method>)?
Thanks in advance.