Module: Bundler::Molinillo::Compatibility

Defined in:
lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb

Overview

Hacks needed for old Ruby versions.

Instance Method Summary collapse

Instance Method Details

#flat_map(enum, &blk) ⇒ Object

Flat map

Parameters:

  • enum (Enumerable)

    an enumerable object

Returns:

  • The enum, flat-mapped


13
14
15
# File 'lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb', line 13

def flat_map(enum, &blk)
  enum.flat_map(&blk)
end