Sha256: 8c8497e691d542f68253f83a8976e1f13c2c344db1b722efb6d8882a52a452df
Contents?: true
Size: 658 Bytes
Versions: 7
Compression:
Stored size: 658 Bytes
Contents
require 'approvals/writers/text_writer' require 'approvals/writers/array_writer' require 'approvals/writers/hash_writer' require 'approvals/writers/html_writer' require 'approvals/writers/xml_writer' require 'approvals/writers/json_writer' module Approvals module Writer extend Writers class << self def for(format) case format when :json then JsonWriter.instance when :xml then XmlWriter.instance when :html then HtmlWriter.instance when :hash then HashWriter.instance when :array then ArrayWriter.instance else TextWriter.instance end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems