Sha256: 61a949cc5634f734facf5b28a4aa2458e4d6b5c65db3487823b552e2561f5a72

Contents?: true

Size: 216 Bytes

Versions: 5

Compression:

Stored size: 216 Bytes

Contents

module Egor
  class EnvironmentFeatureArray < Array

    def label_combinations
      self.inject([]) { |sum, ec|
        sum << ec.labels
      }.inject { |pro, lb|
        pro.product(lb)
      }
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
semin-egor-0.9.0 lib/egor/environment_feature_array.rb
semin-egor-0.9.1 lib/egor/environment_feature_array.rb
semin-egor-0.9.2 lib/egor/environment_feature_array.rb
semin-egor-0.9.3 lib/egor/environment_feature_array.rb
egor-0.9.0 lib/egor/environment_feature_array.rb