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)


181
182
183
# File 'lib/rmpd/command.rb', line 181

def ack?
  !ok?
end

#errorObject



185
186
187
# File 'lib/rmpd/command.rb', line 185

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

#ok?Boolean

Returns:

  • (Boolean)


177
178
179
# File 'lib/rmpd/command.rb', line 177

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