Array
This is a collection of formatters. A FormatterSet can hold multiple formatter instances and provides transparent formatter API methods which invoke same method of each formatters.
# File lib/rubocop/formatter/formatter_set.rb, line 28 def add_formatter(formatter_type, output_path = nil) formatter_class = case formatter_type when Class formatter_type when /\A[A-Z]/ custom_formatter_class(formatter_type) else builtin_formatter_class(formatter_type) end output = output_path ? File.open(output_path, 'w') : $stdout self << formatter_class.new(output) end
Generated with the Darkfish Rdoc Generator 2.