Module: Warg::Command::Naming
- Included in:
- BehaviorWithoutRegistration::ClassMethods
- Defined in:
- lib/warg.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(klass) ⇒ Object
1859 1860 1861 |
# File 'lib/warg.rb', line 1859 def self.extended(klass) Warg::Command.register(klass) end |
Instance Method Details
#command_name ⇒ Object
1863 1864 1865 1866 1867 1868 1869 |
# File 'lib/warg.rb', line 1863 def command_name if defined?(@command_name) @command_name else @command_name = Name.new(class_name: name) end end |
#registry_name ⇒ Object
1871 1872 1873 |
# File 'lib/warg.rb', line 1871 def registry_name command_name.registry end |