Module: Tracksperanto::ConstName
- Included in:
- Export::Base, Import::Base, Tool::Base
- Defined in:
- lib/tracksperanto/const_name.rb
Overview
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
Defined Under Namespace
Modules: C
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(into) ⇒ Object
15 16 17 18 |
# File 'lib/tracksperanto/const_name.rb', line 15 def self.included(into) into.extend(C) super end |
Instance Method Details
#const_name ⇒ Object
11 12 13 |
# File 'lib/tracksperanto/const_name.rb', line 11 def const_name self.class.const_name end |