123456789_123456789_123456789_123456789_123456789_

Module: Bundler::Molinillo::Compatibility

Relationships & Source Files
Defined in: lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb

Overview

Hacks needed for old Ruby versions.

Class Method Summary

Class Method Details

.flat_map(enum, &blk) ⇒ Object (mod_func)

Flat map

See additional method definition at line 13.

Parameters:

  • enum (Enumerable)

    an enumerable object

Returns:

  • The enum, flat-mapped

[ GitHub ]

  
# File 'lib/bundler/vendor/molinillo/lib/molinillo/compatibility.rb', line 21

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