Class: Overlaps::Overlap
- Inherits:
-
Object
- Object
- Overlaps::Overlap
- Defined in:
- lib/overlaps/overlap.rb
Instance Attribute Summary collapse
-
#end_point ⇒ Object
Returns the value of attribute end_point.
-
#ids ⇒ Object
Returns the value of attribute ids.
-
#start_point ⇒ Object
Returns the value of attribute start_point.
Instance Method Summary collapse
-
#initialize(start_point, end_point, ids) ⇒ Overlap
constructor
A new instance of Overlap.
- #range ⇒ Object
Constructor Details
#initialize(start_point, end_point, ids) ⇒ Overlap
Returns a new instance of Overlap.
5 6 7 8 9 |
# File 'lib/overlaps/overlap.rb', line 5 def initialize(start_point, end_point, ids) @start_point = start_point @end_point = end_point @ids = ids end |
Instance Attribute Details
#end_point ⇒ Object
Returns the value of attribute end_point.
3 4 5 |
# File 'lib/overlaps/overlap.rb', line 3 def end_point @end_point end |
#ids ⇒ Object
Returns the value of attribute ids.
3 4 5 |
# File 'lib/overlaps/overlap.rb', line 3 def ids @ids end |
#start_point ⇒ Object
Returns the value of attribute start_point.
3 4 5 |
# File 'lib/overlaps/overlap.rb', line 3 def start_point @start_point end |
Instance Method Details
#range ⇒ Object
11 12 13 |
# File 'lib/overlaps/overlap.rb', line 11 def range (start_point..end_point) end |