Sha256: 71e315f7664263574365a8ef7c956c250bc9dd6984c59ee513b9545956cc3940

Contents?: true

Size: 233 Bytes

Versions: 23

Compression:

Stored size: 233 Bytes

Contents

# frozen_string_literal: true

module EacRubyUtils
  class << self
    def require_sub(file)
      Dir["#{File.dirname(file)}/#{::File.basename(file, '.*')}/*.rb"].sort.each do |path|
        require path
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
ehbrs-tools-0.11.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.33.1 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.33.0 lib/eac_ruby_utils/require_sub.rb
ehbrs-tools-0.10.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.32.1 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.32.0 lib/eac_ruby_utils/require_sub.rb
ehbrs-tools-0.9.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.31.0 lib/eac_ruby_utils/require_sub.rb
ehbrs-tools-0.7.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.30.0 lib/eac_ruby_utils/require_sub.rb
ehbrs-tools-0.6.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.29.0 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.28.0 lib/eac_ruby_utils/require_sub.rb
ehbrs-tools-0.5.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.27.0 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.26.0 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.25.0 lib/eac_ruby_utils/require_sub.rb
ehbrs-tools-0.3.1 vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.24.1 lib/eac_ruby_utils/require_sub.rb
ehbrs-tools-0.3.0 vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb