Class: Subtool::Subtitle
- Inherits:
-
Struct
- Object
- Struct
- Subtool::Subtitle
- Defined in:
- lib/subtool/subtitle.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#end ⇒ Object
Returns the value of attribute end.
-
#id ⇒ Object
Returns the value of attribute id.
-
#start ⇒ Object
Returns the value of attribute start.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
2 3 4 |
# File 'lib/subtool/subtitle.rb', line 2 def body @body end |
#end ⇒ Object
Returns the value of attribute end
2 3 4 |
# File 'lib/subtool/subtitle.rb', line 2 def end @end end |
#id ⇒ Object
Returns the value of attribute id
2 3 4 |
# File 'lib/subtool/subtitle.rb', line 2 def id @id end |
#start ⇒ Object
Returns the value of attribute start
2 3 4 |
# File 'lib/subtool/subtitle.rb', line 2 def start @start end |
Instance Method Details
#add_delay(amount) ⇒ Object
4 5 6 7 |
# File 'lib/subtool/subtitle.rb', line 4 def add_delay(amount) self[:start] = self[:start] + amount self[:end] = self[:end] + amount end |