Module: EventMachine
- Defined in:
- lib/eventmachine-itunes.rb
Defined Under Namespace
Classes: ITunesWatch
Class Method Summary collapse
Class Method Details
.watch_itunes(handler = nil, *args, &block) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/eventmachine-itunes.rb', line 20 def self.watch_itunes(handler = nil, *args, &block) args = ['com.apple.iTunes.playerInfo', *args] klass = klass_from_handler(EventMachine::ITunesWatch, handler, *args); c = klass.new(*args, &block) c.start c end |