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.
21 22 23 |
# File 'lib/rmpd.rb', line 21 def initialize(regex_match) @error, @command_list_num, @current_command, = regex_match.values_at(1..-1) end |
Instance Method Details
#to_s ⇒ Object
25 26 27 |
# File 'lib/rmpd.rb', line 25 def to_s "ACK [#{@error}@#{@command_list_num}] {#{@current_command}} #{@message}" end |