Method: JSONSchemer::Result#output
- Defined in:
- lib/json_schemer/result.rb
#output(output_format) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/json_schemer/result.rb', line 13 def output(output_format) case output_format when 'classic' classic when 'flag' flag when 'basic' basic when 'detailed' detailed when 'verbose' verbose else raise UnknownOutputFormat, output_format end end |