Sha256: ffbf49d01cf70a1b76c72e080b68eda88bd4b4eea5f51c3be288b282a6b5666a
Contents?: true
Size: 762 Bytes
Versions: 1
Compression:
Stored size: 762 Bytes
Contents
# frozen_string_literal: true module SwaggerDocsGenerator # # Metadata generated # # @abstract # Abstract class for metadata provide to controlloer in Rails application class MetadataController < Metadata def initialize @path = File.join(Dir.pwd, 'public', SwaggerDocsGenerator.configure_info.version) conf = SwaggerDocsGenerator.configure.base_controller @controllers = if conf.is_a?(String) ApplicationController.subclasses else conf.subclasses end end private attr_accessor :controllers, :path end end require 'swagger_docs_generator/metadata/path' require 'swagger_docs_generator/metadata/tag'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
swagger_docs_generator-0.1.1 | lib/swagger_docs_generator/metadata/controller.rb |