From 23a63cfce5ef659a35418e7d0d30f0b8ea9f45a5 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Sat, 1 Aug 2009 13:40:01 -0700 Subject: MPDStatus: reorganise and improve documentation. --- libmpd/status.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libmpd/status.rb') diff --git a/libmpd/status.rb b/libmpd/status.rb index ee14b5f..52c937c 100644 --- a/libmpd/status.rb +++ b/libmpd/status.rb @@ -11,7 +11,7 @@ # Collection of methods related to the status. module MPDStatus - # Clears the current error message in the status. + # Clears the error message in the status, if one exists. def clearerror return send_request('clearerror') end @@ -21,13 +21,13 @@ module MPDStatus return generate_hash(send_request('currentsong')) end + # Returns daemon and database statistics. + def stats + return generate_hash(send_request('stats')) + end + # Returns the status. def status return generate_hash(send_request('status')) end - - # Returns statistics. - def stats - return generate_hash(send_request('stats')) - end end -- cgit v1.2.3-70-g09d2