Class: SrtShifter::Shifter
- Inherits:
-
Object
- Object
- SrtShifter::Shifter
- Defined in:
- lib/srtshifter/shifter.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(args) ⇒ Shifter
constructor
A new instance of Shifter.
Constructor Details
#initialize(args) ⇒ Shifter
Returns a new instance of Shifter.
4 5 6 7 8 |
# File 'lib/srtshifter/shifter.rb', line 4 def initialize(args) @arguments = args @opts = SrtShifter::Options.new(@arguments) @subtitle = SrtShifter::Subtitle.new(@opts.) end |
Instance Method Details
#execute ⇒ Object
10 11 12 |
# File 'lib/srtshifter/shifter.rb', line 10 def execute @subtitle.shift if and valid_args? end |