method
parse_generate_options
RSpec latest stable (1.3.1)
-
0 notes -
Class: Spec::Runner::OptionParser
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
parse_generate_options()
protected
Hide source
# File lib/spec/runner/option_parser.rb, line 154 def parse_generate_options # Remove the --generate-options option and the argument before writing to file options_file = nil ['-G', '--generate-options'].each do |option| if index = @argv.index(option) @argv.delete_at(index) options_file = @argv.delete_at(index) end end if options_file write_generated_options(options_file) return true else return false end end