method

load_formatters

rspec latest stable - Class: Spec::Runner::Options
load_formatters(format_options, formatters)
public

No documentation available.

# File lib/spec/runner/options.rb, line 239
      def load_formatters(format_options, formatters)
        format_options.map do |format, where|
          formatter_type = if formatters[format]
            require formatters[format][0]
            eval(formatters[format][1], binding, __FILE__, __LINE__)
          else
            load_class(format, 'formatter', '--format')
          end
          formatter_type.new(formatter_options, where)
        end
      end