Method: Set#==

Defined in:
lib/include/set.rb

#==(other) ⇒ Object



15
16
17
18
19
20
21
22
# File 'lib/include/set.rb', line 15

def ==(other)
  return false unless self.size == other.size
  @set.each do |i|
    return false unless other.include?(i)
  end

  return true
end