method

parse

rails latest stable - Class: ActiveSupport::Multibyte::Handlers::UnicodeTableGenerator

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.1.0) is shown here.

parse()
public

No documentation available.

# File activesupport/lib/active_support/multibyte/generators/generate_tables.rb, line 115
    def parse
      SOURCES.each do |type, url|
        filename =  File.join(Dir.tmpdir, "#{url.split('/').last}")
        unless File.exist?(filename)
          $stderr.puts "Downloading #{url.split('/').last}"
          File.open(filename, 'wb') do |target|
            open(url) do |source|
              source.each_line { |line| target.write line }
            end
          end
        end
        File.open(filename) do |file|
          file.each_line { |line| send "parse_#{type}".intern, line }
        end        
      end
      create_composition_map
      normalize_boundary_map
    end