Class: R2mp3::Inspector
- Inherits:
-
Object
- Object
- R2mp3::Inspector
- Defined in:
- lib/r2mp3/inspector.rb
Instance Method Summary collapse
Instance Method Details
#info ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/r2mp3/inspector.rb', line 4 def info nil unless File.extname(file).eql?(".mp3") tag = nil File.open file do |f| tag = WahWah::Mp3Tag.new(f) end tag.instance_variables.each_with_object({}) do |var, hash| hash[var.to_s.delete("@")] = tag.instance_variable_get(var) end end |