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:


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

def self.from_bool(value)
end

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

Parameters:

  • value (Fixnum)

Returns:

Since:

  • 1.0.0


152
153
# File 'docs/taglib/mp4.rb', line 152

def self.from_byte(value)
end

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

Parameters:

  • list (TagLib::ByteVectorList)

Returns:

Since:

  • 1.0.0


190
191
# File 'docs/taglib/mp4.rb', line 190

def self.from_byte_vector_list(list)
end

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

Parameters:

  • number (Fixnum)

Returns:


164
165
# File 'docs/taglib/mp4.rb', line 164

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:


178
179
# File 'docs/taglib/mp4.rb', line 178

def self.from_int_pair(integer_pair)
end

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

Parameters:

  • number (Fixnum)

Returns:

Since:

  • 1.0.0


171
172
# File 'docs/taglib/mp4.rb', line 171

def self.from_long_long(number)
end

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

Parameters:

  • string_array (Array<String>)

Returns:


183
184
# File 'docs/taglib/mp4.rb', line 183

def self.from_string_list(string_array)
end

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

Parameters:

  • value (Boolean)

Returns:

Since:

  • 1.0.0


159
160
# File 'docs/taglib/mp4.rb', line 159

def self.from_uint(value)
end

Instance Method Details

#to_boolBoolean

Returns:

  • (Boolean)

194
195
# File 'docs/taglib/mp4.rb', line 194

def to_bool
end

#to_byteFixnum

Returns:

  • (Fixnum)

Since:

  • 1.0.0


200
201
# File 'docs/taglib/mp4.rb', line 200

def to_byte
end

#to_byte_vector_listTagLib::ByteVectorList

Returns:

  • (TagLib::ByteVectorList)

Since:

  • 1.0.0


234
235
# File 'docs/taglib/mp4.rb', line 234

def to_byte_vector_list
end

#to_cover_art_listArray<TagLib::MP4::CoverArt>

Returns:


220
221
# File 'docs/taglib/mp4.rb', line 220

def to_cover_art_list
end

#to_intFixnum

Returns:

  • (Fixnum)

210
211
# File 'docs/taglib/mp4.rb', line 210

def to_int
end

#to_int_pairArray<Fixnum, Fixnum>

Returns:

  • (Array<Fixnum, Fixnum>)

224
225
# File 'docs/taglib/mp4.rb', line 224

def to_int_pair
end

#to_long_longFixnum

Returns:

  • (Fixnum)

Since:

  • 1.0.0


216
217
# File 'docs/taglib/mp4.rb', line 216

def to_long_long
end

#to_string_listArray<String>

Returns:

  • (Array<String>)

228
229
# File 'docs/taglib/mp4.rb', line 228

def to_string_list
end

#to_uintFixnum

Returns:

  • (Fixnum)

Since:

  • 1.0.0


206
207
# File 'docs/taglib/mp4.rb', line 206

def to_uint
end

#valid?Boolean

Returns:

  • (Boolean)

238
239
# File 'docs/taglib/mp4.rb', line 238

def valid?
end