Sha256: 23c30f6a1840831cd79d17167e8af55b1db51c3a170958fcc95150564db77d29
Contents?: true
Size: 896 Bytes
Versions: 3
Compression:
Stored size: 896 Bytes
Contents
module Rmpd module Commands complex_command :commands, :regexp => /(^command: )/i simple_command :notcommands, :regexp => /(^command: )/i simple_command :clearerror simple_command :idle simple_command :noidle simple_command :password simple_command :ping simple_command :stats simple_command :status def close send_command("close") @socket.close end alias_method :clear_error, :clearerror alias_method :not_commands, :notcommands def command_list send_command("command_list_begin") @in_command_list = true yield self send_command("command_list_end") if @in_command_list_response_regexp read_responses(@in_command_list_response_regexp) else read_response end ensure @in_command_list = false @in_command_list_response_regexp = nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rmpd-1.0.4 | lib/rmpd/commands/miscellaneous.rb |
rmpd-1.0.3 | lib/rmpd/commands/miscellaneous.rb |
rmpd-1.0.2 | lib/rmpd/commands/miscellaneous.rb |