Class: Arel::Nodes::Overlaps
- Inherits:
-
Object
- Object
- Arel::Nodes::Overlaps
- Defined in:
- lib/arel/extensions/overlaps.rb
Instance Attribute Summary collapse
-
#end1 ⇒ Object
readonly
Returns the value of attribute end1.
-
#end2 ⇒ Object
readonly
Returns the value of attribute end2.
-
#start1 ⇒ Object
readonly
Returns the value of attribute start1.
-
#start2 ⇒ Object
readonly
Returns the value of attribute start2.
Instance Method Summary collapse
-
#initialize(start1, end1, start2, end2) ⇒ Overlaps
constructor
A new instance of Overlaps.
Constructor Details
#initialize(start1, end1, start2, end2) ⇒ Overlaps
Returns a new instance of Overlaps.
19 20 21 22 23 24 |
# File 'lib/arel/extensions/overlaps.rb', line 19 def initialize(start1, end1, start2, end2) @start1 = start1 @end1 = end1 @start2 = start2 @end2 = end2 end |
Instance Attribute Details
#end1 ⇒ Object (readonly)
Returns the value of attribute end1.
15 16 17 |
# File 'lib/arel/extensions/overlaps.rb', line 15 def end1 @end1 end |
#end2 ⇒ Object (readonly)
Returns the value of attribute end2.
17 18 19 |
# File 'lib/arel/extensions/overlaps.rb', line 17 def end2 @end2 end |
#start1 ⇒ Object (readonly)
Returns the value of attribute start1.
14 15 16 |
# File 'lib/arel/extensions/overlaps.rb', line 14 def start1 @start1 end |
#start2 ⇒ Object (readonly)
Returns the value of attribute start2.
16 17 18 |
# File 'lib/arel/extensions/overlaps.rb', line 16 def start2 @start2 end |