Module: TestMe::Formatter
- Defined in:
- lib/formatter.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.create(format) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/formatter.rb', line 4 def self.create format case format when :none return Formatter::None.new when :console return Formatter::Console.new when :html return Formatter::HTML.new when :json return false when :xml return false end end |