module CabbageDoc

Constants

MARKER
TAG
VERSION
VISIBILITY
VISIBILITY_REGEXP

Public Class Methods

configure() { |config| ... } click to toggle source
# File lib/cabbage_doc.rb, line 33
def configure
  Configuration.instance.tap do |config|
    yield config if block_given?
    config.validate!
  end
end
glob(*args) click to toggle source
# File lib/cabbage_doc.rb, line 40
def glob(*args)
  proc do
    arr = args.first
    arr = [args] unless arr.is_a?(Array)
    arr.map { |segs| Dir.glob(File.join(*Array(segs))) }.flatten.sort.reverse
  end
end