class ISO3166::Country
def find_all_by(attribute, val)
def find_all_by(attribute, val) attributes, value = parse_attributes(attribute, val) Data.select do |_, v| attributes.map do |attr| Array(v[attr]).any? { |n| value === n.to_s.downcase } end.include?(true) end end