Module: RubyTorrent::ArrayUniq2

Defined in:
lib/rubytorrent/tracker.rb

Overview

am i insane or does ‘uniq’ not use == or === for some insane reason? wtf is that about?

Instance Method Summary collapse

Instance Method Details

#uniq2Object



31
32
33
34
35
# File 'lib/rubytorrent/tracker.rb', line 31

def uniq2
  ret = []
  each { |x| ret.push x unless ret.member? x }
  ret
end