Module: Enumerable
- Defined in:
- lib/restfulx/configuration.rb
Overview
Enumerable extensions
Instance Method Summary collapse
-
#dups ⇒ Object
Helps you find duplicates used in schema_to_yaml.rb for cleanup.
Instance Method Details
#dups ⇒ Object
Helps you find duplicates used in schema_to_yaml.rb for cleanup
9 10 11 |
# 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 |