Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/sqlserver_schema_reflector/array.rb

Instance Method Summary collapse

Instance Method Details

#find_hashes(keys) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
# File 'lib/sqlserver_schema_reflector/array.rb', line 2

def find_hashes(keys)
  results = []
  each do |item|
    hash = item.find_hashes(keys)
    if !hash.nil?
      results.push(hash)
    end
  end
  return nil if results.length == 0
  return results[0] if results.length == 1
  return results
end