Class: ID3Lib::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/sweeper.rb

Instance Method Summary collapse

Instance Method Details

#urlObject



13
14
15
16
# File 'lib/sweeper.rb', line 13

def url
  f = frame(:WORS)
  f ? f[:url] : nil
end

#url=(s) ⇒ Object



18
19
20
21
# File 'lib/sweeper.rb', line 18

def url=(s)
  remove_frame(:WORS)    
  self << {:id => :WORS, :url => s} if s.any?
end