method
parse_format
1.1.4 -
Show latest stable
- Class:
Spec::Runner::Options
parse_format(format_arg)public
No documentation available.
# File lib/spec/runner/options.rb, line 161
def parse_format(format_arg)
format, where = ClassAndArgumentsParser.parse(format_arg)
unless where
raise "When using several --format options only one of them can be without a file" if @out_used
where = @output_stream
@out_used = true
end
@format_options ||= []
@format_options << [format, where]
end