Class: WahWah::Mp3Tag
- Extended by:
- Forwardable, TagDelegate
- Defined in:
- lib/wahwah/mp3_tag.rb
Constant Summary
Constants inherited from Tag
Tag::INSPECT_ATTRIBUTES, Tag::INTEGER_ATTRIBUTES
Instance Attribute Summary
Attributes inherited from Tag
#album, #albumartist, #artist, #bit_depth, #bitrate, #comments, #composer, #disc, #disc_total, #duration, #file_size, #genre, #sample_rate, #title, #track, #track_total, #year
Instance Method Summary collapse
Methods included from TagDelegate
Methods inherited from Tag
#images, #initialize, #inspect
Constructor Details
This class inherits a constructor from WahWah::Tag
Instance Method Details
#id3_version ⇒ Object
36 37 38 |
# File 'lib/wahwah/mp3_tag.rb', line 36 def id3_version @id3_tag&.version end |
#id3v2? ⇒ Boolean
28 29 30 |
# File 'lib/wahwah/mp3_tag.rb', line 28 def id3v2? @id3_tag.instance_of? ID3::V2 end |
#invalid_id3? ⇒ Boolean
32 33 34 |
# File 'lib/wahwah/mp3_tag.rb', line 32 def invalid_id3? @id3_tag.nil? end |
#is_vbr? ⇒ Boolean
40 41 42 |
# File 'lib/wahwah/mp3_tag.rb', line 40 def is_vbr? xing_header.valid? || vbri_header.valid? end |