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



1817
1818
1819
# File 'lib/warg.rb', line 1817

def self.extended(klass)
  Warg::Command.register(klass)
end

Instance Method Details

#command_nameObject



1821
1822
1823
1824
1825
1826
1827
# File 'lib/warg.rb', line 1821

def command_name
  if defined?(@command_name)
    @command_name
  else
    @command_name = Name.new(class_name: name)
  end
end

#registry_nameObject



1829
1830
1831
# File 'lib/warg.rb', line 1829

def registry_name
  command_name.registry
end