Class: Subshift::Runner
- Inherits:
-
Object
- Object
- Subshift::Runner
- Defined in:
- lib/subshift/runner.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/subshift/runner.rb', line 3 def @options end |
Class Method Details
.run(argv) ⇒ Object
7 8 9 |
# File 'lib/subshift/runner.rb', line 7 def self.run(argv) new(argv).run end |
Instance Method Details
#run ⇒ Object
15 16 17 18 19 |
# File 'lib/subshift/runner.rb', line 15 def run File.copylines(source, destination) do |line| shift_times(line) if timeline?(line) end end |