class Mkv_File::Subtitles_Track

Attributes

default[R]
id[R]
language[R]
name[R]
uid[R]

Public Class Methods

new(track_data) click to toggle source
# File bin/mkvtoolhelper, line 70
def initialize track_data
        @id = track_data['id']
        @default = track_data['properties']['default_track']
        @name = track_data['properties']['track_name']
        @language = track_data['properties']['language']
        @uid = track_data['properties']['uid']
end

Public Instance Methods

==(other) click to toggle source
# File bin/mkvtoolhelper, line 78
def ==(other)
        @id == other.id &&
        @default == other.default &&
        @name == other.name &&
        @language == other.language &&
        @uid == other.uid
end
get_tracks(file) click to toggle source
# File bin/mkvtoolhelper, line 98
def get_tracks file
        file.subtitles
end
hash() click to toggle source
# File bin/mkvtoolhelper, line 86
def hash
        @id.hash &
        @default.hash &
        @name.hash &
        @language.hash &
        @uid.hash
end
to_s() click to toggle source
# File bin/mkvtoolhelper, line 94
def to_s
        "#<Subtitles_Track::#{@name} (#{@language})"
end