module Enumerable

Enumerable extensions

Public Instance Methods

dups() click to toggle source

Helps you find duplicates used in schema_to_yaml.rb for cleanup

# File lib/restfulx/configuration.rb, line 9
def dups
  inject({}) { |h,v| h[v] = h[v].to_i + 1; h }.reject{ |k,v| v == 1 }.keys
end