Class: Ulla::EnvironmentFeatureArray
- Inherits:
-
Array
- Object
- Array
- Ulla::EnvironmentFeatureArray
- Defined in:
- lib/ulla/environment_feature_array.rb
Instance Method Summary collapse
Instance Method Details
#label_combinations ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/ulla/environment_feature_array.rb', line 4 def label_combinations self.inject([]) { |sum, ec| sum << ec.labels }.inject { |pro, lb| pro.product(lb) } end |
#label_combinations_without_aa_type ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/ulla/environment_feature_array.rb', line 12 def label_combinations_without_aa_type self[1..-1].inject([]) { |sum, ec| sum << ec.labels }.inject { |pro, lb| pro.product(lb) } end |