Module: Id3Taginator::Frames::McdiFrames
Instance Method Summary collapse
-
#music_cd_identifier ⇒ String?
extracts the music cd identifier (MCDI/MCI).
-
#music_cd_identifier=(cd_toc) ⇒ Object
sets the music cd identifier (MCDI/MCI).
-
#remove_music_cd_identifier ⇒ Object
removes the music cd identifier frame.
Methods included from Frameable
#find_frame, #find_frames, #set_frame_fields, #set_frame_fields_by_selector, #unsupported_frame
Instance Method Details
#music_cd_identifier ⇒ String?
extracts the music cd identifier (MCDI/MCI)
11 12 13 |
# File 'lib/id3taginator/frames/mcdi_frames.rb', line 11 def music_cd_identifier find_frame(Mcdi::MusicCDIdentifierFrame.frame_id(@major_version, @options))&.cd_toc end |
#music_cd_identifier=(cd_toc) ⇒ Object
sets the music cd identifier (MCDI/MCI)
18 19 20 |
# File 'lib/id3taginator/frames/mcdi_frames.rb', line 18 def music_cd_identifier=(cd_toc) set_frame_fields(Mcdi::MusicCDIdentifierFrame, [:@cd_toc], cd_toc) end |
#remove_music_cd_identifier ⇒ Object
removes the music cd identifier frame
23 24 25 |
# File 'lib/id3taginator/frames/mcdi_frames.rb', line 23 def remove_music_cd_identifier @frames.delete_if { |f| f.frame_id == Mcdi::MusicCDIdentifierFrame.frame_id(@major_version, @options) } end |