Sha256: 7b4949fa9fcccd4ae6acf6f81cd6a809a00a0701e25e9bd39620ff5230023f28

Contents?: true

Size: 725 Bytes

Versions: 9

Compression:

Stored size: 725 Bytes

Contents

module Rmpd
  module Commands

    simple_command :commands
    simple_command :notcommands
    simple_command :clearerror
    simple_command :_idle
    simple_command :_noidle
    simple_command :password
    simple_command :ping
    simple_command :stats
    simple_command :status
    simple_command :_close

    def close
      _close
      @socket.close
    end

    simple_command :command_list
    simple_command :command_list_ok

    def idle(*subsystems)
      @in_idle = true
      _idle(mpd, *subsystems)
    ensure
      @in_idle = false
    end

    def noidle
      return unless @in_idle
      _noidle
    end

    alias_method :clear_error, :clearerror
    alias_method :not_commands, :notcommands

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rmpd-1.1.9 lib/rmpd/commands/miscellaneous.rb
rmpd-1.1.8 lib/rmpd/commands/miscellaneous.rb
rmpd-1.1.7 lib/rmpd/commands/miscellaneous.rb
rmpd-1.1.6 lib/rmpd/commands/miscellaneous.rb
rmpd-1.1.5 lib/rmpd/commands/miscellaneous.rb
rmpd-1.1.4 lib/rmpd/commands/miscellaneous.rb
rmpd-1.1.3 lib/rmpd/commands/miscellaneous.rb
rmpd-1.1.2 lib/rmpd/commands/miscellaneous.rb
rmpd-1.1.1 lib/rmpd/commands/miscellaneous.rb