Module: Enumerable
- Defined in:
- lib/bootstripe/enumerable_additions.rb
Instance Method Summary collapse
Instance Method Details
#dups ⇒ Object
2 3 4 |
# File 'lib/bootstripe/enumerable_additions.rb', line 2 def dups inject({}) {|h,v| h[v]=h[v].to_i+1; h}.reject{|k,v| v==1}.keys end |