Sha256: 752a6445d647a5852785c1c9eff68a8b11c782d49ba25233639416fa9dec79c6

Contents?: true

Size: 384 Bytes

Versions: 7343

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,343 entries across 7,261 versions & 126 rubygems

Version Path
cybrid_api_organization_ruby-0.123.143 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_id_ruby-0.123.143 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_bank_ruby-0.123.142 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_id_ruby-0.123.142 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_organization_ruby-0.123.142 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_bank_ruby-0.123.140 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_id_ruby-0.123.140 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_organization_ruby-0.123.140 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_bank_ruby-0.123.139 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_id_ruby-0.123.139 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_organization_ruby-0.123.139 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_id_ruby-0.123.137 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_organization_ruby-0.123.137 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_bank_ruby-0.123.137 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_organization_ruby-0.123.135 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_bank_ruby-0.123.135 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_id_ruby-0.123.135 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_bank_ruby-0.123.134 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_id_ruby-0.123.134 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb
cybrid_api_organization_ruby-0.123.134 vendor/bundle/ruby/3.3.0/gems/rspec-core-3.13.2/lib/rspec/core/flat_map.rb