Module: ID3Tag

Defined in:
lib/id3tag.rb,
lib/id3tag/tag.rb,
lib/id3tag/scope.rb,
lib/id3tag/audio_file.rb,
lib/id3tag/number_util.rb,
lib/id3tag/string_util.rb,
lib/id3tag/frame_id_advisor.rb,
lib/id3tag/id3_v2_tag_header.rb,
lib/id3tag/synchsafe_integer.rb,
lib/id3tag/unsynchronization.rb,
lib/id3tag/id3_v1_frame_parser.rb,
lib/id3tag/id3_v2_frame_parser.rb,
lib/id3tag/frames/v1/text_frame.rb,
lib/id3tag/frames/v2/text_frame.rb,
lib/id3tag/frames/v1/genre_frame.rb,
lib/id3tag/frames/v2/basic_frame.rb,
lib/id3tag/frames/v2/frame_flags.rb,
lib/id3tag/frames/v2/genre_frame.rb,
lib/id3tag/frames/util/genre_names.rb,
lib/id3tag/frames/v2/private_frame.rb,
lib/id3tag/frames/v1/comments_frame.rb,
lib/id3tag/frames/v1/track_nr_frame.rb,
lib/id3tag/frames/v2/comments_frame.rb,
lib/id3tag/frames/v2/user_text_frame.rb,
lib/id3tag/frames/v2/frame_fabricator.rb,
lib/id3tag/frames/v2/unique_file_id_frame.rb,
lib/id3tag/frames/v2/genre_frame/genre_parser.rb,
lib/id3tag/frames/v2/involved_people_list_frame.rb,
lib/id3tag/frames/v2/genre_frame/genre_parser_24.rb,
lib/id3tag/frames/v2/genre_frame/genre_parser_pre_24.rb,
lib/id3tag/frames/v2/unsychronized_transcription_frame.rb

Defined Under Namespace

Modules: Frames, NumberUtil, StringUtil Classes: AudioFile, FrameIdAdvisor, ID3V1FrameParser, ID3V2FrameParser, ID3v2TagHeader, Scope, SynchsafeInteger, Tag, Unsynchronization

Class Method Summary collapse

Class Method Details

.read(source, scope = :all) {|tag| ... } ⇒ Object

Yields:

  • (tag)


34
35
36
37
38
# File 'lib/id3tag.rb', line 34

def self.read(source, scope = :all)
  tag = Tag.read(source, scope)
  yield tag if block_given?
  tag
end