class Xmms::Client::Sync
Attributes
real[R]
Public Class Methods
new(name)
click to toggle source
# File src/clients/lib/ruby/sync.rb, line 21 def initialize(name) @real = Xmms::Client.new(name) end
Public Instance Methods
method_missing(id, *args)
click to toggle source
# File src/clients/lib/ruby/sync.rb, line 25 def method_missing(id, *args) args.push(&block) if(id == 'on_disconnect') ret = @real.send(id, *args) if(ret.is_a?(Xmms::Result) || ret.is_a?(Xmms::BroadcastResult) || ret.is_a?(Xmms::SignalResult)) ret.wait.value elsif(ret.is_a?(Xmms::Client)) self elsif(ret.is_a?(Xmms::Collection)) Xmms::Collection::Sync.new(ret) elsif(ret.is_a?(Xmms::Playlist)) Xmms::Playlist::Sync.new(ret) else ret end end