Class: Mkv2m4v::Track
- Inherits:
-
Object
show all
- Extended by:
- Forwardable
- Defined in:
- lib/mkv2m4v/track.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(track_info) ⇒ Track
Returns a new instance of Track.
11
12
13
|
# File 'lib/mkv2m4v/track.rb', line 11
def initialize(track_info)
@info = track_info
end
|
Instance Attribute Details
#info ⇒ Object
Returns the value of attribute info.
7
8
9
|
# File 'lib/mkv2m4v/track.rb', line 7
def info
@info
end
|
Instance Method Details
23
24
25
|
# File 'lib/mkv2m4v/track.rb', line 23
def format_description
"#{format} (#{info.format_info}, #{info.codec_id})"
end
|
#language ⇒ Object
15
16
17
|
# File 'lib/mkv2m4v/track.rb', line 15
def language
Iso639[info["language"]]
end
|
#title ⇒ Object
19
20
21
|
# File 'lib/mkv2m4v/track.rb', line 19
def title
info["title"]
end
|