class MPD::Commands::Ping
Tries to execute “ping” command. Returns `true` if succedeed, raises error if `MpdError` occurred, `false` otherwise
Public Instance Methods
execute()
click to toggle source
Calls superclass method
MPD::Commands::Abstract#execute
# 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