Method: Interval#eql?
- Defined in:
- lib/standard/facets/interval.rb
#eql?(other) ⇒ Boolean
Compares two intervals to see if they are equal
269 270 271 272 273 274 275 |
# File 'lib/standard/facets/interval.rb', line 269 def eql?(other) return false unless @first == other.first return false unless @last == other.last return false unless @exclude_first == other.exclude_first? return false unless @exclude_last == other.exclude_last? true end |