Class: DVDConverter::Subtitle
- Inherits:
-
Object
- Object
- DVDConverter::Subtitle
- Defined in:
- lib/dvd_converter/subtitle.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#hex ⇒ Object
Returns the value of attribute hex.
-
#language ⇒ Object
Returns the value of attribute language.
-
#track_id ⇒ Object
Returns the value of attribute track_id.
Instance Method Summary collapse
-
#initialize(id, hex, language, code) ⇒ Subtitle
constructor
A new instance of Subtitle.
- #print_description ⇒ Object
Constructor Details
#initialize(id, hex, language, code) ⇒ Subtitle
Returns a new instance of Subtitle.
9 10 11 12 13 14 |
# File 'lib/dvd_converter/subtitle.rb', line 9 def initialize(id, hex, language, code) @track_id = id @hex = hex @language = language @code = code end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/dvd_converter/subtitle.rb', line 4 def code @code end |
#hex ⇒ Object
Returns the value of attribute hex.
6 7 8 |
# File 'lib/dvd_converter/subtitle.rb', line 6 def hex @hex end |
#language ⇒ Object
Returns the value of attribute language.
7 8 9 |
# File 'lib/dvd_converter/subtitle.rb', line 7 def language @language end |
#track_id ⇒ Object
Returns the value of attribute track_id.
5 6 7 |
# File 'lib/dvd_converter/subtitle.rb', line 5 def track_id @track_id end |
Instance Method Details
#print_description ⇒ Object
16 17 18 19 20 21 |
# File 'lib/dvd_converter/subtitle.rb', line 16 def print_description print "+ Subtitle Track #{@track_id}: " print "#{@hex} - " print "#{@language} - " print "#{@code}\n" end |