class Xmms::Collection::Async

Attributes

real[R]

Public Class Methods

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

Public Instance Methods

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