Module: Swagger

Defined in:
lib/swagger.rb,
lib/swagger/api.rb,
lib/swagger/version.rb,
lib/swagger/document.rb,
lib/swagger/operation.rb,
lib/generators/swagger/install/install_generator.rb

Defined Under Namespace

Classes: Api, Document, InstallGenerator, Operation

Constant Summary collapse

VERSION =
"0.0.1"

Instance Method Summary collapse

Instance Method Details

#document(base_path, opts = {}) ⇒ Object



9
10
11
12
# 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