Class: ActiveSupport::Multibyte::Unicode::Codepoint

Inherits:
Object
  • Object
show all
Defined in:
activesupport/lib/active_support/multibyte/unicode.rb

Overview

Holds data about a codepoint in the Unicode database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCodepoint

Initializing Codepoint object with default values


320
321
322
323
324
# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 320

def initialize
  @combining_class = 0
  @uppercase_mapping = 0
  @lowercase_mapping = 0
end

Instance Attribute Details

#codeObject

Returns the value of attribute code


317
318
319
# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 317

def code
  @code
end

#combining_classObject

Returns the value of attribute combining_class


317
318
319
# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 317

def combining_class
  @combining_class
end

#decomp_mappingObject

Returns the value of attribute decomp_mapping


317
318
319
# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 317

def decomp_mapping
  @decomp_mapping
end

#decomp_typeObject

Returns the value of attribute decomp_type


317
318
319
# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 317

def decomp_type
  @decomp_type
end

#lowercase_mappingObject

Returns the value of attribute lowercase_mapping


317
318
319
# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 317

def lowercase_mapping
  @lowercase_mapping
end

#uppercase_mappingObject

Returns the value of attribute uppercase_mapping


317
318
319
# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 317

def uppercase_mapping
  @uppercase_mapping
end

Instance Method Details

#swapcase_mappingObject


326
327
328
# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 326

def swapcase_mapping
  uppercase_mapping > 0 ? uppercase_mapping : lowercase_mapping
end