123456789_123456789_123456789_123456789_123456789_

Class: SimpleCov::Formatter::MultiFormatter

Relationships & Source Files
Namespace Children
Modules:
Inherits: Object
Defined in: lib/simplecov/formatter/multi_formatter.rb

Class Method Summary

Constructor Details

.new(formatters = nil) ⇒ MultiFormatter

[ GitHub ]

  
# File 'lib/simplecov/formatter/multi_formatter.rb', line 17

def self.new(formatters = nil)
  Class.new do
    define_method :formatters do
      @formatters ||= Array(formatters)
    end
    include InstanceMethods
  end
end

Class Method Details

.[](*args)

[ GitHub ]

  
# File 'lib/simplecov/formatter/multi_formatter.rb', line 26

def self.[](*args)
  warn "#{Kernel.caller.first}: [DEPRECATION] ::[] is deprecated. Use ::new instead."
  new(Array(args))
end