Sha256: c877bb0614ba91f78ec6056c2c538abac665e39cf0ca9eb416aea23fe9a1445d

Contents?: true

Size: 236 Bytes

Versions: 14

Compression:

Stored size: 236 Bytes

Contents

module Lucid
  module LoadPath
    def add_dirs(*dirs)
      dirs.each do |dir|
        $LOAD_PATH.unshift(dir) unless $LOAD_PATH.include?(dir)
      end
    end

    module_function :add_dirs
  end
end

Lucid::LoadPath.add_dirs('lib')

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lucid-0.5.1 lib/lucid/load_path.rb
lucid-0.4.1 lib/lucid/load_path.rb
lucid-0.4.0 lib/lucid/load_path.rb
lucid-0.3.3 lib/lucid/load_path.rb
lucid-0.3.0 lib/lucid/load_path.rb
lucid-0.2.1 lib/lucid/load_path.rb
lucid-0.2.0 lib/lucid/load_path.rb
lucid-0.1.1 lib/lucid/load_path.rb
lucid-0.1.0 lib/lucid/load_path.rb
lucid-0.0.9 lib/lucid/load_path.rb
lucid-0.0.8 lib/lucid/load_path.rb
lucid-0.0.7 lib/lucid/load_path.rb
lucid-0.0.6 lib/lucid/load_path.rb
lucid-0.0.5 lib/lucid/load_path.rb