Class: TestChanges::ARGVWrapper
- Inherits:
-
Object
- Object
- TestChanges::ARGVWrapper
- Defined in:
- lib/test_changes/argv_wrapper.rb
Instance Attribute Summary collapse
-
#argv ⇒ Object
readonly
Returns the value of attribute argv.
Instance Method Summary collapse
- #commit ⇒ Object
-
#initialize(argv) ⇒ ARGVWrapper
constructor
A new instance of ARGVWrapper.
- #runner_call_options ⇒ Object
- #runner_name ⇒ Object
- #verbose? ⇒ Boolean
Constructor Details
#initialize(argv) ⇒ ARGVWrapper
Returns a new instance of ARGVWrapper.
5 6 7 |
# File 'lib/test_changes/argv_wrapper.rb', line 5 def initialize(argv) @argv = argv end |
Instance Attribute Details
#argv ⇒ Object (readonly)
Returns the value of attribute argv.
3 4 5 |
# File 'lib/test_changes/argv_wrapper.rb', line 3 def argv @argv end |
Instance Method Details
#commit ⇒ Object
9 10 11 |
# File 'lib/test_changes/argv_wrapper.rb', line 9 def commit [:commit] end |
#runner_call_options ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/test_changes/argv_wrapper.rb', line 13 def = argv.index('--') if argv.slice( + 1, argv.size) else [] end end |
#runner_name ⇒ Object
23 24 25 |
# File 'lib/test_changes/argv_wrapper.rb', line 23 def runner_name [:runner] end |
#verbose? ⇒ Boolean
27 28 29 |
# File 'lib/test_changes/argv_wrapper.rb', line 27 def verbose? !.quiet? end |