Class: TreeClusters::AttrArray
- Inherits:
-
Object::Array
- Object
- Object::Array
- TreeClusters::AttrArray
- Defined in:
- lib/tree_clusters.rb
Overview
Provides convenience methods for working with Arrays of Sets
Instance Method Summary collapse
-
#intersection ⇒ Set
Takes the intersection of all sets in the AttrArray.
-
#union ⇒ Set
Takes the union of all sets in the AttrArray.
Instance Method Details
#intersection ⇒ Set
Takes the intersection of all sets in the AttrArray
272 273 274 |
# File 'lib/tree_clusters.rb', line 272 def intersection self.reduce(&:intersection) end |
#union ⇒ Set
Takes the union of all sets in the AttrArray
265 266 267 |
# File 'lib/tree_clusters.rb', line 265 def union self.reduce(&:union) end |