# File lib/tins/uniq_by.rb, line 3 def uniq_by(&b) b ||= lambda { |x| x } inject({}) { |h, e| h[b[e]] ||= e; h }.values end
[Validate]
Generated with the Darkfish Rdoc Generator 2.