module Tracksperanto::ConstName
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
Public Class Methods
included(into)
click to toggle source
Calls superclass method
# File lib/tracksperanto/const_name.rb, line 14 def self.included(into) into.extend(C) super end
Public Instance Methods
const_name()
click to toggle source
# File lib/tracksperanto/const_name.rb, line 10 def const_name self.class.const_name end