module Mokei

Constants

VERSION

Attributes

builder_paths[RW]

Public Class Methods

load_builders!() click to toggle source
# File lib/mokei/load_builders.rb, line 8
def self.load_builders!
  absolute_builder_paths = builder_paths.map { |path| File.expand_path(path) }

  absolute_builder_paths.uniq.each do |path|
    load("#{path}.rb") if File.exist?("#{path}.rb")

    if File.directory? path
      Dir[File.join(path, '**', '*.rb')].sort.each { |file| load file }
    end
  end
end