Sha256: 752a6445d647a5852785c1c9eff68a8b11c782d49ba25233639416fa9dec79c6

Contents?: true

Size: 384 Bytes

Versions: 7390

Compression:

Stored size: 384 Bytes

Contents

module RSpec
  module Core
    # @private
    module FlatMap
      if [].respond_to?(:flat_map)
        def flat_map(array, &block)
          array.flat_map(&block)
        end
      else # for 1.8.7
        # :nocov:
        def flat_map(array, &block)
          array.map(&block).flatten(1)
        end
        # :nocov:
      end

      module_function :flat_map
    end
  end
end

Version data entries

7,390 entries across 7,307 versions & 128 rubygems

Version Path
logstash-input-fifo-0.9.0 vendor/bundle/jruby/1.9/gems/rspec-core-3.5.4/lib/rspec/core/flat_map.rb
logstash-input-salesforce-3.0.0 vendor/jruby/1.9/gems/rspec-core-3.5.4/lib/rspec/core/flat_map.rb
abaci-0.3.0 vendor/bundle/gems/rspec-core-3.5.1/lib/rspec/core/flat_map.rb
abaci-0.3.0 vendor/bundle/gems/rspec-core-3.5.4/lib/rspec/core/flat_map.rb
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/rspec-core-3.5.4/lib/rspec/core/flat_map.rb
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/rspec-core-3.5.4/lib/rspec/core/flat_map.rb
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/rspec-core-3.5.4/lib/rspec/core/flat_map.rb
rspec-core-3.6.0.beta2 lib/rspec/core/flat_map.rb
gameboard-3.1.0 vendor/bundle/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/flat_map.rb
gameboard-3.0.0 vendor/bundle/ruby/2.3.0/gems/rspec-core-3.5.4/lib/rspec/core/flat_map.rb
rspec-core-3.6.0.beta1 lib/rspec/core/flat_map.rb
rspec-core-3.5.4 lib/rspec/core/flat_map.rb
cvss-suite-1.0.8 vendor/cache/ruby/2.2.0/gems/rspec-core-3.4.0/lib/rspec/core/flat_map.rb
tdiary-5.0.2 vendor/bundle/gems/rspec-core-3.5.2/lib/rspec/core/flat_map.rb
logstash-filter-delta-1.1.0 vendor/bundle/jruby/2.2.0/gems/rspec-core-3.5.3/lib/rspec/core/flat_map.rb
logstash-filter-delta-1.0.1 vendor/bundle/jruby/2.2.0/gems/rspec-core-3.5.3/lib/rspec/core/flat_map.rb
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/rspec-core-3.5.3/lib/rspec/core/flat_map.rb
logstash-filter-base64-1.0.3 vendor/bundle/jruby/2.2.0/gems/rspec-core-3.5.3/lib/rspec/core/flat_map.rb
logstash-filter-delta-1.0.0 vendor/bundle/jruby/2.2.0/gems/rspec-core-3.5.3/lib/rspec/core/flat_map.rb
logstash-filter-base64-1.0.2 vendor/bundle/jruby/2.3.0/gems/rspec-core-3.5.3/lib/rspec/core/flat_map.rb