Class: ID3Lib::Tag

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

Instance Method Summary collapse

Instance Method Details

#urlObject



11
12
13
14
# File 'lib/sweeper.rb', line 11

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

#url=(s) ⇒ Object



16
17
18
19
# File 'lib/sweeper.rb', line 16

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