Method: Somadic::BaseChannel#initialize
- Defined in:
- lib/somadic/base_channel.rb
#initialize(options) ⇒ BaseChannel
Returns a new instance of BaseChannel.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/somadic/base_channel.rb', line 8 def initialize() @url = [:url] playlist = @url.split('/').last name = playlist[0..playlist.index('.pls') - 1] @channel = find_channel(name) @mp = Mplayer.new() @mp.add_observer(self) @listeners = [:listeners] end |