Class: MPD::Commands::Ping
- Defined in:
- lib/mpd/commands/ping.rb
Overview
Tries to execute “ping” command. Returns true if succedeed, raises error if MpdError occurred, false otherwise
Instance Attribute Summary
Attributes inherited from Abstract
Instance Method Summary collapse
Methods inherited from Abstract
Constructor Details
This class inherits a constructor from MPD::Commands::Abstract
Instance Method Details
#execute ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/mpd/commands/ping.rb', line 12 def execute super('ping') true rescue StandardError => e raise e if e.is_a?(MpdError) false end |