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' } module ClassMethods def config @config ||= ActiveSupport::InheritableOptions.new(DEFAULT_CONFIG) end def configure(&block) config.instance_eval &block end ### config options # register_apis = { # version: { # :file_output_path, :root_controller # info: {} # }} # is_options = %w[] def apis @apis ||= @config.register_apis end end end end