class Xmms::Collection::Sync

Attributes

real[R]

Public Class Methods

new(coll) click to toggle source
# File src/clients/lib/ruby/sync.rb, line 46
def initialize(coll)
        @real = coll
end

Public Instance Methods

method_missing(id, *args) click to toggle source
# File src/clients/lib/ruby/sync.rb, line 50
def method_missing(id, *args)
        ret = @real.send(id, *args)
        if(ret.is_a?(Xmms::Result))
                ret.wait.value
        elsif(ret.is_a?(Xmms::Collection))
                self
        else
                ret
        end
end