Class: Rmpd::Command::ResponseArray

Inherits:
Array
  • Object
show all
Defined in:
lib/rmpd/command.rb

Instance Method Summary collapse

Instance Method Details

#ack?Boolean

Returns:

  • (Boolean)


155
156
157
# File 'lib/rmpd/command.rb', line 155

def ack?
  !ok?
end

#errorObject



159
160
161
# File 'lib/rmpd/command.rb', line 159

def error
  find {|e| e.ack?}.error if ack?
end

#ok?Boolean

Returns:

  • (Boolean)


151
152
153
# File 'lib/rmpd/command.rb', line 151

def ok?
  all?(&:ok?)
end