If I give you:
module Something module SomethingElse class Foo end end end How do you get the class name of "Foo"? In the console, I have something similar to the example, but when I do .name on it it doesn't print out what I expect.
This is whats in my console:
pry(main)> AisisWriter::Controllers::CommentsManagement::CommentsHandler.name => "AisisWriter::Controllers::CommentsManagement::CommentsHandler" What I expect is just "CommentsHandler"