Module: Approvals::Writer
- Extended by:
- Writers
- Defined in:
- lib/approvals/writer.rb
Class Method Summary collapse
Class Method Details
.for(format) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/approvals/writer.rb', line 13 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 |