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

Parameters:

  • value (Boolean)

Returns:



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

def self.from_bool(value)
end

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

Parameters:

  • value (Fixnum)

Returns:

Since:

  • 1.0.0



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

def self.from_byte(value)
end

.from_byte_vector_list(list) ⇒ TagLib::MP4::Item

Parameters:

  • list (TagLib::ByteVectorList)

Returns:

Since:

  • 1.0.0



188
189
# File 'docs/taglib/mp4.rb', line 188

def self.from_byte_vector_list(list)
end

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

Parameters:

  • number (Fixnum)

Returns:



162
163
# File 'docs/taglib/mp4.rb', line 162

def self.from_int(number)
end

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

Examples:

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

Parameters:

  • integer_pair (Array<Fixnum, Fixnum>)

Returns:



176
177
# File 'docs/taglib/mp4.rb', line 176

def self.from_int_pair(integer_pair)
end

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

Parameters:

  • number (Fixnum)

Returns:

Since:

  • 1.0.0



169
170
# File 'docs/taglib/mp4.rb', line 169

def self.from_long_long(number)
end

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

Parameters:

  • string_array (Array<String>)

Returns:



181
182
# File 'docs/taglib/mp4.rb', line 181

def self.from_string_list(string_array)
end

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

Parameters:

  • value (Boolean)

Returns:

Since:

  • 1.0.0



157
158
# File 'docs/taglib/mp4.rb', line 157

def self.from_uint(value)
end

Instance Method Details

#to_boolBoolean

Returns:

  • (Boolean)


192
193
# File 'docs/taglib/mp4.rb', line 192

def to_bool
end

#to_byteFixnum

Returns:

  • (Fixnum)

Since:

  • 1.0.0



198
199
# File 'docs/taglib/mp4.rb', line 198

def to_byte
end

#to_byte_vector_listTagLib::ByteVectorList

Returns:

  • (TagLib::ByteVectorList)

Since:

  • 1.0.0



232
233
# File 'docs/taglib/mp4.rb', line 232

def to_byte_vector_list
end

#to_cover_art_listArray<TagLib::MP4::CoverArt>

Returns:



218
219
# File 'docs/taglib/mp4.rb', line 218

def to_cover_art_list
end

#to_intFixnum

Returns:

  • (Fixnum)


208
209
# File 'docs/taglib/mp4.rb', line 208

def to_int
end

#to_int_pairArray<Fixnum, Fixnum>

Returns:

  • (Array<Fixnum, Fixnum>)


222
223
# File 'docs/taglib/mp4.rb', line 222

def to_int_pair
end

#to_long_longFixnum

Returns:

  • (Fixnum)

Since:

  • 1.0.0



214
215
# File 'docs/taglib/mp4.rb', line 214

def to_long_long
end

#to_string_listArray<String>

Returns:

  • (Array<String>)


226
227
# File 'docs/taglib/mp4.rb', line 226

def to_string_list
end

#to_uintFixnum

Returns:

  • (Fixnum)

Since:

  • 1.0.0



204
205
# File 'docs/taglib/mp4.rb', line 204

def to_uint
end

#valid?Boolean

Returns:

  • (Boolean)


236
237
# File 'docs/taglib/mp4.rb', line 236

def valid?
end