Sha256: 6f1375508aeb51fbea341672c7c4be2ad3f367eaa6999c8c81b7fe65e7ae8b57
Contents?: true
Size: 357 Bytes
Versions: 42
Compression:
Stored size: 357 Bytes
Contents
module RSpec module Core # @private module FlatMap if [].respond_to?(:flat_map) def flat_map(array) array.flat_map { |item| yield item } end else # for 1.8.7 def flat_map(array) array.map { |item| yield item }.flatten end end module_function :flat_map end end end
Version data entries
42 entries across 39 versions & 9 rubygems