Sha256: 291e01df5b698346a2ad74078cb35c505a5aaffcc7405a19bf7436fccf854918

Contents?: true

Size: 282 Bytes

Versions: 7

Compression:

Stored size: 282 Bytes

Contents

module Rmpd
  module IO

    def to_io
      send_command("idle") unless @in_idle
      @in_idle = true
      @socket
    end

    def check_select
      return unless @in_idle
      Response.factory("idle").parse(read_response)
    ensure
      @in_idle = false
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rmpd-1.1.9 lib/rmpd/io.rb
rmpd-1.1.8 lib/rmpd/io.rb
rmpd-1.1.7 lib/rmpd/io.rb
rmpd-1.1.6 lib/rmpd/io.rb
rmpd-1.1.5 lib/rmpd/io.rb
rmpd-1.1.4 lib/rmpd/io.rb
rmpd-1.1.3 lib/rmpd/io.rb