Sha256: 724593f814fe7f2fc1839e9d4371aad6cab71b336e5511b5e0adf410a154a6a0

Contents?: true

Size: 177 Bytes

Versions: 1

Compression:

Stored size: 177 Bytes

Contents

module Enumerable
  # Helps you find duplicates
  # used in schema_to_yaml.rb for cleanup
  def dups
    inject({}) {|h,v| h[v]=h[v].to_i+1; h}.reject{|k,v| v==1}.keys
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dima-restfulx-1.2.2 lib/restfulx/schema_to_yaml/extensions/enumerable.rb