module OpenApi module Config def self.included(base) base.extend ClassMethods end DEFAULT_CONFIG = { is_options: %w[email phone password uuid uri url time date], dft_file_format: 'binary' }.freeze module ClassMethods def config @config ||= ActiveSupport::InheritableOptions.new(DEFAULT_CONFIG) end def configure(&block) config.instance_eval &block end ### config options # register_docs = { # doc_name: { # :file_output_path, :root_controller # info: {} # }} # is_options = %w[] def apis @apis ||= @config.register_docs end end end end