Uname: Linux server105.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 68.65.120.251
Your Ip: 3.147.69.134
User: travtpib (6521) | Group: travtpib (6478)
Safe Mode: OFF
Disable Function:
NONE

name : compatibility.rb
# frozen_string_literal: true

module Bundler::Molinillo
  # Hacks needed for old Ruby versions.
  module Compatibility
    module_function

    if [].respond_to?(:flat_map)
      # Flat map
      # @param [Enumerable] enum an enumerable object
      # @block the block to flat-map with
      # @return The enum, flat-mapped
      def flat_map(enum, &blk)
        enum.flat_map(&blk)
      end
    else
      # Flat map
      # @param [Enumerable] enum an enumerable object
      # @block the block to flat-map with
      # @return The enum, flat-mapped
      def flat_map(enum, &blk)
        enum.map(&blk).flatten(1)
      end
    end
  end
end
© 2025 GrazzMean-Shell