Is the following possible?
puts A::B::C.new.namespace_path # => [:A,:B], or even [A,B]
Is the following possible?
puts A::B::C.new.namespace_path # => [:A,:B], or even [A,B]
I think maybe #ancestors is what you're looking for.
So A::B::C.ancestors
or you may just want to self.class.to_s.split("::")