Class: DevSuite::Utils::Construct::Component::Base
- Inherits:
-
Object
- Object
- DevSuite::Utils::Construct::Component::Base
- Defined in:
- lib/dev_suite/utils/construct/component/base.rb
Direct Known Subclasses
DirectoryTree::Builder::Base, DirectoryTree::Renderer::Base, DirectoryTree::Visualizer::Base, Performance::Profiler::Base, Performance::Reporter::Base, RequestBuilder::Tool::Base, RequestLogger::Adapter::Base, RequestLogger::Extractor::Base, DevSuite::Utils::Color::Palette::Base, DevSuite::Utils::Color::Strategy::Base, FileLoader::Loader::Base, FileWriter::Writer::Base, Store::Driver::Base, Table::Renderer::Base, Workflow::Step::Base
Class Method Summary collapse
-
.component_key ⇒ Object
Returns the key for the class.
Class Method Details
.component_key ⇒ Object
Returns the key for the class. If the COMPONENT_KEY constant is defined, it returns its value. Otherwise, it generates a key based on the class name.
11 12 13 14 15 |
# File 'lib/dev_suite/utils/construct/component/base.rb', line 11 def component_key return const_get(:COMPONENT_KEY) if const_defined?(:COMPONENT_KEY) generate_key_from_class_name end |