lib/tracksperanto/const_name.rb in tracksperanto-2.1.1 vs lib/tracksperanto/const_name.rb in tracksperanto-2.2.0
- old
+ new
@@ -1,4 +1,6 @@
+# Provides const_name that returns the name of the class or module (or the name of the class
+# an instance belongs to) without it's parent namespace. Useful for building module tables
module Tracksperanto::ConstName
module C
def const_name
to_s.split('::').pop
end
\ No newline at end of file