module Swagger::Parsers
Provides classes for loading Swagger
from YAML or JSON.
Public Class Methods
parser_for(format)
click to toggle source
# File lib/swagger/parsers.rb, line 7 def self.parser_for(format) case format when '.yaml', '.yml', :yaml YAMLParser when '.json', '.js', :json JSONParser end end