Module: BoPeep::Command::Naming

Included in:
BehaviorWithoutRegistration::ClassMethods
Defined in:
lib/bopeep.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(klass) ⇒ Object



1942
1943
1944
# File 'lib/bopeep.rb', line 1942

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

Instance Method Details

#command_nameObject



1946
1947
1948
1949
1950
1951
1952
# File 'lib/bopeep.rb', line 1946

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

#registry_nameObject



1954
1955
1956
# File 'lib/bopeep.rb', line 1954

def registry_name
  command_name.registry
end