Class: MediaInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/mediainfo/version.rb,
ext/libmediainfo/mediainfo.c

Defined Under Namespace

Modules: VERSION Classes: StreamType, Track

Delegating Into STRING collapse

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



92
93
94
95
96
97
98
# File 'ext/libmediainfo/mediainfo.c', line 92

static VALUE
mediainfo_compare(VALUE self, VALUE other)
{
    GET_MEDIAINFO(a, self);
    GET_MEDIAINFO(b, other);
    return rb_funcall(a->path, rb_intern("<=>"), 1, b->path);
}

#each_trackObject



325
326
327
328
329
330
# File 'ext/libmediainfo/mediainfo.c', line 325

static VALUE
mediainfo_each(VALUE self)
{
    UNPACK_MI;
    return rb_ary_each(mi->tracks);
}

#versionLibmediainfo::VERSION

provides easy-access to VERSION in the main gem scope

Returns:

  • (Libmediainfo::VERSION)

    the main VERSION



68
69
70
# File 'lib/mediainfo/version.rb', line 68

def version
  VERSION
end