Sha256: c75c11dca1d425dc1291362768b67089d0798bfdb9dc45ff770052b000d49107

Contents?: true

Size: 1.43 KB

Versions: 3

Compression:

Stored size: 1.43 KB

Contents

module CabbageDoc
  MARKER = ':cabbagedoc:'.freeze
  VISIBILITY = %i(public private internal).freeze
  VISIBILITY_REGEXP = VISIBILITY.map(&:to_s).map(&:capitalize).join('|').freeze

  autoload :Path,           'cabbage_doc/path'
  autoload :Singleton,      'cabbage_doc/singleton'
  autoload :Cloneable,      'cabbage_doc/cloneable'
  autoload :Parser,         'cabbage_doc/parser'
  autoload :Client,         'cabbage_doc/client'
  autoload :Request,        'cabbage_doc/request'
  autoload :Response,       'cabbage_doc/response'
  autoload :Params,         'cabbage_doc/params'
  autoload :Example,        'cabbage_doc/example'
  autoload :Configuration,  'cabbage_doc/configuration'
  autoload :Authentication, 'cabbage_doc/authentication'
  autoload :Parameter,      'cabbage_doc/parameter'
  autoload :Action,         'cabbage_doc/action'
  autoload :Controller,     'cabbage_doc/controller'
  autoload :Collection,     'cabbage_doc/collection'
  autoload :WebHelper,      'cabbage_doc/web_helper'
  autoload :Web,            'cabbage_doc/web'
  autoload :Processor,      'cabbage_doc/processor'
  autoload :Customizer,     'cabbage_doc/customizer'
  autoload :Task,           'cabbage_doc/task'
  autoload :Worker,         'cabbage_doc/worker'
  autoload :Cache,          'cabbage_doc/cache'

  class << self
    def configure
      Configuration.instance.tap do |config|
        yield config if block_given?
        config.validate!
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cabbage_doc-0.0.6 lib/cabbage_doc.rb
cabbage_doc-0.0.5 lib/cabbage_doc.rb
cabbage_doc-0.0.4 lib/cabbage_doc.rb