method
parse_file_options
1.2.8 -
Show latest stable
-
0 notes -
Class: Spec::Runner::OptionParser
- 1.1.4
- 1.1.12
- 1.2.0 (0)
- 1.2.8 (0)
- 1.3.0 (0)
- 1.3.1 (0)
- What's this?
parse_file_options(option_name, action)
protected
Hide source
# File lib/spec/runner/option_parser.rb, line 158 def parse_file_options(option_name, action) # Remove the file option and the argument before handling the file options_file = nil options_list = OPTIONS[option_name][0..1] options_list[1].gsub!(" PATH", "") options_list.each do |option| if index = @argv.index(option) @argv.delete_at(index) options_file = @argv.delete_at(index) end end if options_file send(action, options_file) return true else return false end end