Method: JSONSchemer::Result#output
- Defined in:
- lib/json_schemer/result.rb
#output(output_format) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/json_schemer/result.rb', line 8 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 |