Module: RIO::Ext::Mp3Info

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

Instance Method Summary collapse

Methods included from Fwd

fwd, fwd_reader, fwd_readers, fwd_writer, fwd_writers

Instance Method Details

#albumObject



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

def album() _chop0(tag.album) end

#artistObject



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

def artist() _chop0(tag.artist) end

#mp3infoObject



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

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

#mp3lengthObject



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

def mp3length() mp3info.length end

#timeObject



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

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

#titleObject



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

def title() _chop0(tag.title) end

#vbrObject Also known as: vbr?



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

def vbr() mp3info.vbr end

#yearObject



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

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