class Object
Public Class Methods
new(reporter)
click to toggle source
# File lib/rspec/core/formatters_decorator.rb, line 6 def initialize(reporter) @formatters = [] @reporter = reporter self.default_formatter = 'lenny' end
Public Instance Methods
built_in_formatter(key)
click to toggle source
# File lib/rspec/core/formatters_decorator.rb, line 12 def built_in_formatter(key) case key.to_s when 'd', 'doc', 'documentation' RSpec::Core::Formatters::DocumentationFormatter when 'h', 'html' RSpec::Core::Formatters::HtmlFormatter when 'p', 'progress' RSpec::Core::Formatters::ProgressFormatter when 'j', 'json' RSpec::Core::Formatters::JsonFormatter when 'bisect' RSpec::Core::Formatters::BisectFormatter when 'l', 'lenny' RSpec::Core::Formatters::LennyFormatter end end