module Swagger
Constants
- VERSION
Public Instance Methods
document(base_path, opts = {}) { |d| ... }
click to toggle source
# File lib/swagger.rb, line 9 def document base_path, opts = {} d = Document.new(base_path, opts).tap { |d| yield(d) } render :json => d end