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



1727
1728
1729
# File 'lib/warg.rb', line 1727

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

Instance Method Details

#command_nameObject



1731
1732
1733
1734
1735
1736
1737
# File 'lib/warg.rb', line 1731

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

#registry_nameObject



1739
1740
1741
# File 'lib/warg.rb', line 1739

def registry_name
  command_name.registry
end