Class: ID3Tag::Frames::V2::TableOfContentsFrame
- Inherits:
-
BasicFrame
- Object
- BasicFrame
- ID3Tag::Frames::V2::TableOfContentsFrame
show all
- Defined in:
- lib/id3tag/frames/v2/table_of_contents_frame.rb
Constant Summary
collapse
- FLAG_A_TOP_LEVEL_BIT =
"00000001".to_i(2)
- FLAG_B_ORDERED_BIT =
"00000010".to_i(2)
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
Instance Method Details
#child_element_ids ⇒ Object
Also known as:
content
24
25
26
|
# File 'lib/id3tag/frames/v2/table_of_contents_frame.rb', line 24
def child_element_ids
unpacked[:child_element_ids]
end
|
#element_id ⇒ Object
8
9
10
|
# File 'lib/id3tag/frames/v2/table_of_contents_frame.rb', line 8
def element_id
unpacked[:element_id]
end
|
#entry_count ⇒ Object
20
21
22
|
# File 'lib/id3tag/frames/v2/table_of_contents_frame.rb', line 20
def entry_count
unpacked[:entry_count]
end
|
#ordered? ⇒ Boolean
16
17
18
|
# File 'lib/id3tag/frames/v2/table_of_contents_frame.rb', line 16
def ordered?
unpacked[:flags] & FLAG_B_ORDERED_BIT > 0
end
|
#subframes ⇒ Object
31
32
33
|
# File 'lib/id3tag/frames/v2/table_of_contents_frame.rb', line 31
def subframes
unpacked[:subframes]
end
|
#top_level? ⇒ Boolean
12
13
14
|
# File 'lib/id3tag/frames/v2/table_of_contents_frame.rb', line 12
def top_level?
unpacked[:flags] & FLAG_A_TOP_LEVEL_BIT > 0
end
|