175 176 177 178 179 180 181 182
# File 'lib/rangeset.rb', line 175 def ==(other) !!( if other.is_a? RangeSet ranges == other.ranges elsif other.is_a? Range and ranges.count == 1 ranges == [other] end) end