module ISO3166::CountryFinderMethods

def find_by(attribute, value, obj = nil)

def find_by(attribute, value, obj = nil)
  find_all_by(attribute.downcase, value).map do |country|
    obj.nil? ? country : new(country.last)
  end
end