Class: ID3Tag::Frames::V2::GenreFrame

Inherits:
BasicFrame
  • Object
show all
Defined in:
lib/id3tag/frames/v2/genre_frame.rb,
lib/id3tag/frames/v2/genre_frame/genre_parser.rb,
lib/id3tag/frames/v2/genre_frame/genre_parser_24.rb,
lib/id3tag/frames/v2/genre_frame/genre_parser_pre_24.rb

Defined Under Namespace

Classes: GenreParser, GenreParser24, GenreParserPre24, MissingGenreParser

Constant Summary

Constants inherited from BasicFrame

BasicFrame::DECOMPRESSED_SIZE_BYTE_COUNT, BasicFrame::GROUP_BYTE_COUNT

Instance Attribute Summary

Attributes inherited from BasicFrame

#id, #raw_content

Instance Method Summary collapse

Methods inherited from BasicFrame

#compressed?, #data_length_indicator?, #encrypted?, #encryption_id, #final_size, #group_id, #grouped?, #initialize, #inspect, #preserve_on_file_alteration?, #preserve_on_tag_alteration?, #read_additional_info_byte, #read_only?, #unsynchronised?, #usable_content

Constructor Details

This class inherits a constructor from ID3Tag::Frames::V2::BasicFrame

Instance Method Details

#contentObject Also known as: inspectable_content



11
12
13
# File 'lib/id3tag/frames/v2/genre_frame.rb', line 11

def content
  genres.join(", ")
end

#genresObject



7
8
9
# File 'lib/id3tag/frames/v2/genre_frame.rb', line 7

def genres
  @genres ||= get_genres
end