Module: DogNotGod::Commands
- Defined in:
- lib/client_commands.rb
Defined Under Namespace
Classes: ClientCommand, DiskStats, LoadStats, MemoryStats
Class Method Summary collapse
Class Method Details
.factory(command_name_symbol) ⇒ Object
27 28 29 30 31 |
# File 'lib/client_commands.rb', line 27 def self.factory(command_name_symbol) class_name = command_name_symbol.to_s.camelize klass = self.const_get class_name klass.new end |