Class: Rmpd::Command
- Inherits:
-
Object
- Object
- Rmpd::Command
- Defined in:
- lib/rmpd/command.rb
Defined Under Namespace
Modules: CommandListOkStrategy, CommandListStrategy, CommandStrategy, IdleStrategy, NoidleStrategy Classes: List, ResponseArray, Splitter
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(name) ⇒ Command
Returns a new instance of Command.
13 14 15 16 |
# File 'lib/rmpd/command.rb', line 13 def initialize(name) @name = name @list = initialize_list(&block) if block_given? end |
Class Method Details
.new(name) ⇒ Object
8 9 10 11 |
# File 'lib/rmpd/command.rb', line 8 def self.new(name) obj = super obj.extend(choose_strategy(name)) end |