Sha256: d811a03354818f0dbb3c5beae147a75d461a1f9f50dac76f6ff2a244fe6cbaec

Contents?: true

Size: 273 Bytes

Versions: 41

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

module Cucumber
  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

Cucumber::LoadPath.add_dirs('lib')

Version data entries

41 entries across 41 versions & 4 rubygems

Version Path
cucumber-9.2.1 lib/cucumber/load_path.rb
cucumber-9.2.0 lib/cucumber/load_path.rb
cucumber-9.1.2 lib/cucumber/load_path.rb
cucumber-9.1.1 lib/cucumber/load_path.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/cucumber-9.1.0/lib/cucumber/load_path.rb
cucumber-9.1.0 lib/cucumber/load_path.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/cucumber-9.0.2/lib/cucumber/load_path.rb
cucumber-9.0.2 lib/cucumber/load_path.rb
cucumber-9.0.1 lib/cucumber/load_path.rb
cucumber-9.0.0 lib/cucumber/load_path.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/load_path.rb
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/load_path.rb
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/load_path.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/cucumber-8.0.0/lib/cucumber/load_path.rb
cucumber-8.0.0 lib/cucumber/load_path.rb
cucumber-8.0.0.rc.1 lib/cucumber/load_path.rb
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/cucumber-7.1.0/lib/cucumber/load_path.rb
cucumber-7.1.0 lib/cucumber/load_path.rb
cucumber-7.0.0 lib/cucumber/load_path.rb
cucumber-6.1.0 lib/cucumber/load_path.rb