How I can obtain the whole namespace definition path for a method inside the same method?
Using this example to make easy the question:
module Parent
module Child
def self.get_complete_namespace
this_path = ???
puts this_path.to_s
end
end
end
Parent::Child.get_complete_namespace
#=> "Parent::Child.get_complete_namespace"
So to puts or print out this string "Parent::Child.get_complete_namespace", what is the "this_path" variable value using self super o something like that?