lib/phonelib/data_importer.rb
# adds possible pattern in case it doesn't exists
adds possible pattern in case it doesn't exists
adds possible pattern in case it doesn ' t exists
def fill_possible_to_types_if_nil(result)
        result[:types].each do |type, data|
          if data[Core::VALID_PATTERN] && !data[Core::POSSIBLE_PATTERN]
            result[:types][type][Core::POSSIBLE_PATTERN] = case type
                  when Core::GENERAL
                    national_possible result[:types]
                  else
                    data[Core::VALID_PATTERN]
                  end
          end
        end
        result
      end
def fill_possible_to_types_if_nil ( result ) result [ :types ] . each do | type , data | if data [ Core :: VALID_PATTERN ] && ! data [ Core :: POSSIBLE_PATTERN ] result [ :types ] [ type ] [ Core :: POSSIBLE_PATTERN ] = case type when Core :: GENERAL national_possible result [ :types ] else data [ Core :: VALID_PATTERN ] end end end result end
adds possible pattern in case it doesn't exists
adds possible pattern in case it doesn ' t exists
result
<not_specific>