Class: TagLib::MP4::Item

Inherits:
Object
  • Object
show all
Defined in:
docs/taglib/mp4.rb

Overview

TagLib's MP4::Item class is a C++ union. To create a new Item with a value of the right type, use one of the Item.from_<type>-constructors. The use of Item.new is discouraged. For more information, see the TagLib documentation of Item.

Examples:

Using a specific constructor

item = TagLib::MP4::Item.from_string_list(['hello'])
# => #<TagLib::MP4::Item:0x007ffd59796d60 @__swigtype__="_p_TagLib__MP4__Item">
item.to_string_list
# => ["hello"]
item.to_int # Good luck!
# => 1538916358

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_bool(value) ⇒ TagLib::MP4::Item


109
110
# File 'docs/taglib/mp4.rb', line 109

def self.from_bool(value)
end

.from_int(number) ⇒ TagLib::MP4::Item


114
115
# File 'docs/taglib/mp4.rb', line 114

def self.from_int(number)
end

.from_int_pair(integer_pair) ⇒ TagLib::MP4::Item

Examples:

TagLib::MP4::Item.from_int_pair([4, 11])

121
122
# File 'docs/taglib/mp4.rb', line 121

def self.from_int_pair(integer_pair)
end

.from_string_list(string_array) ⇒ TagLib::MP4::Item


126
127
# File 'docs/taglib/mp4.rb', line 126

def self.from_string_list(string_array)
end

Instance Method Details

#to_boolBoolean


130
131
# File 'docs/taglib/mp4.rb', line 130

def to_bool
end

#to_cover_art_listArray<TagLib::MP4::CoverArt>


134
135
# File 'docs/taglib/mp4.rb', line 134

def to_cover_art_list
end

#to_intFixnum


138
139
# File 'docs/taglib/mp4.rb', line 138

def to_int
end

#to_int_pairArray<Fixnum, Fixnum>


142
143
# File 'docs/taglib/mp4.rb', line 142

def to_int_pair
end

#to_string_listArray<String>


146
147
# File 'docs/taglib/mp4.rb', line 146

def to_string_list
end

#valid?Boolean


150
151
# File 'docs/taglib/mp4.rb', line 150

def valid?
end