Class: Overlap::Detect
- Inherits:
-
Object
- Object
- Overlap::Detect
- Defined in:
- lib/overlap/detect.rb
Instance Attribute Summary collapse
-
#overlaps ⇒ Object
readonly
Returns the value of attribute overlaps.
Instance Method Summary collapse
-
#initialize(collection) ⇒ Detect
constructor
A new instance of Detect.
Constructor Details
permalink #initialize(collection) ⇒ Detect
Returns a new instance of Detect.
6 7 8 9 10 |
# File 'lib/overlap/detect.rb', line 6 def initialize(collection) @collection = collection @overlaps = [] build! end |
Instance Attribute Details
permalink #overlaps ⇒ Object (readonly)
Returns the value of attribute overlaps.
4 5 6 |
# File 'lib/overlap/detect.rb', line 4 def overlaps @overlaps end |