Method: Interval#eql?
- Defined in:
- lib/mega/interval.rb
#eql?(other) ⇒ Boolean
Compares two intervals to see if they are equal
258 259 260 261 262 263 264 |
# File 'lib/mega/interval.rb', line 258 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 |