Exception: Rmpd::MpdAckError
Instance Method Summary collapse
-
#initialize(regex_match) ⇒ MpdAckError
constructor
A new instance of MpdAckError.
- #to_s ⇒ Object
Constructor Details
#initialize(regex_match) ⇒ MpdAckError
Returns a new instance of MpdAckError.
23 24 25 |
# File 'lib/rmpd.rb', line 23 def initialize(regex_match) @error, @command_list_num, @current_command, @message = regex_match.values_at(1..-1) end |
Instance Method Details
#to_s ⇒ Object
27 28 29 |
# File 'lib/rmpd.rb', line 27 def to_s "ACK [#{@error}@#{@command_list_num}] {#{@current_command}} #{@message}" end |