Class: SimpleCov::Formatter::MultiFormatter
- Inherits:
-
Object
- Object
- SimpleCov::Formatter::MultiFormatter
- Defined in:
- lib/simplecov/formatter/multi_formatter.rb,
sig/simplecov.rbs
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
-
.new(formatters = nil) ⇒ Class
Normalized eagerly and captured in the closure.
Class Method Details
.new(formatters = nil) ⇒ Class
Normalized eagerly and captured in the closure. Array() is pure for every
accepted input shape, so this is equivalent to the historical lazy
per-instance memoization.
19 20 21 22 23 24 25 26 27 |
# File 'lib/simplecov/formatter/multi_formatter.rb', line 19 def self.new(formatters = nil) formatter_list = Array(formatters) Class.new do define_method :formatters do formatter_list end include InstanceMethods end end |