Module: RIO::Ext::Mp3Info

Extended by:
Forwardable
Included in:
Ops::File::Existing
Defined in:
lib/rio/ext/mp3info.rb

Instance Method Summary collapse

Instance Method Details

#albumObject



49
# File 'lib/rio/ext/mp3info.rb', line 49

def album() _chop0(tag.album) end

#artistObject



50
# File 'lib/rio/ext/mp3info.rb', line 50

def artist() _chop0(tag.artist) end

#mp3infoObject



42
# File 'lib/rio/ext/mp3info.rb', line 42

def mp3info() ::Mp3Info.new(self.fspath) end

#mp3lengthObject



52
# File 'lib/rio/ext/mp3info.rb', line 52

def mp3length() mp3info.length end

#timeObject



55
56
57
58
# File 'lib/rio/ext/mp3info.rb', line 55

def time() 
  t = Time.at(mp3length).getutc
  t.strftime(t.hour == 0 ? "%M:%S" : "%H:%M:%S") 
end

#titleObject



48
# File 'lib/rio/ext/mp3info.rb', line 48

def title() _chop0(tag.title) end

#vbrObject Also known as: vbr?



53
# File 'lib/rio/ext/mp3info.rb', line 53

def vbr() mp3info.vbr end

#yearObject



51
# File 'lib/rio/ext/mp3info.rb', line 51

def year() _chop0(tag.year.to_s) end