Sha256: aefd8ca3687c54f5869ee3b9c1982c08fce5a88a13d1e91f4ceb9681a8936769

Contents?: true

Size: 228 Bytes

Versions: 12

Compression:

Stored size: 228 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
eac_ruby_utils-0.21.0 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.20.0 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.19.0 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.18.1 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.18.0 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.17.0 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.16.0 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.15.0 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.14.0 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.13.0 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.12.0 lib/eac_ruby_utils/require_sub.rb
eac_ruby_utils-0.11.0 lib/eac_ruby_utils/require_sub.rb