Class: Overlap::Detect

Inherits:
Object
  • Object
show all
Defined in:
lib/overlap/detect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(collection) ⇒ Detect

Returns a new instance of Detect.

[View source]

6
7
8
9
10
# File 'lib/overlap/detect.rb', line 6

def initialize(collection)
  @collection = collection
  @overlaps = []
  build!
end

Instance Attribute Details

#overlapsObject (readonly)

Returns the value of attribute overlaps.


4
5
6
# File 'lib/overlap/detect.rb', line 4

def overlaps
  @overlaps
end