class ActiveSupport::Multibyte::Unicode::UnicodeDatabase

Holds static data from the Unicode database.

Constants

ATTRIBUTES

Public Class Methods

dirname() click to toggle source

Returns the directory in which the data files are stored.

# File activesupport/lib/active_support/multibyte/unicode.rb, line 361
def self.dirname
  File.expand_path("../values", __dir__)
end
filename() click to toggle source

Returns the filename for the data file for this version.

# File activesupport/lib/active_support/multibyte/unicode.rb, line 366
def self.filename
  File.expand_path File.join(dirname, "unicode_tables.dat")
end
new() click to toggle source
# File activesupport/lib/active_support/multibyte/unicode.rb, line 318
def initialize
  @codepoints = Hash.new(Codepoint.new)
  @composition_exclusion = []
  @composition_map = {}
  @boundary = {}
  @cp1252 = {}
end

Public Instance Methods

===(other) click to toggle source
# File activesupport/lib/active_support/multibyte/unicode.rb, line 348
def ===(other)
  detect { |i| i === other } ? true : false
end
load() click to toggle source
# File activesupport/bin/generate_tables, line 18
def load; end