Class: Arel::Nodes::Overlaps
- Defined in:
- lib/arel/extensions/overlaps.rb
Overview
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.
Methods inherited from Node
Constructor Details
#initialize(start1, end1, start2, end2) ⇒ Overlaps
Returns a new instance of Overlaps.
13 14 15 16 17 18 |
# File 'lib/arel/extensions/overlaps.rb', line 13 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.
9 10 11 |
# File 'lib/arel/extensions/overlaps.rb', line 9 def end1 @end1 end |
#end2 ⇒ Object (readonly)
Returns the value of attribute end2.
11 12 13 |
# File 'lib/arel/extensions/overlaps.rb', line 11 def end2 @end2 end |
#start1 ⇒ Object (readonly)
Returns the value of attribute start1.
8 9 10 |
# File 'lib/arel/extensions/overlaps.rb', line 8 def start1 @start1 end |
#start2 ⇒ Object (readonly)
Returns the value of attribute start2.
10 11 12 |
# File 'lib/arel/extensions/overlaps.rb', line 10 def start2 @start2 end |