Class: Mail::Multibyte::Unicode::Codepoint

Inherits:
Object
  • Object
show all
Defined in:
lib/mail/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



14
15
16
17
18
# File 'lib/mail/multibyte/unicode.rb', line 14

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

Instance Attribute Details

#codeObject

Returns the value of attribute code



11
12
13
# File 'lib/mail/multibyte/unicode.rb', line 11

def code
  @code
end

#combining_classObject

Returns the value of attribute combining_class



11
12
13
# File 'lib/mail/multibyte/unicode.rb', line 11

def combining_class
  @combining_class
end

#decomp_mappingObject

Returns the value of attribute decomp_mapping



11
12
13
# File 'lib/mail/multibyte/unicode.rb', line 11

def decomp_mapping
  @decomp_mapping
end

#decomp_typeObject

Returns the value of attribute decomp_type



11
12
13
# File 'lib/mail/multibyte/unicode.rb', line 11

def decomp_type
  @decomp_type
end

#lowercase_mappingObject

Returns the value of attribute lowercase_mapping



11
12
13
# File 'lib/mail/multibyte/unicode.rb', line 11

def lowercase_mapping
  @lowercase_mapping
end

#uppercase_mappingObject

Returns the value of attribute uppercase_mapping



11
12
13
# File 'lib/mail/multibyte/unicode.rb', line 11

def uppercase_mapping
  @uppercase_mapping
end

Instance Method Details

#swapcase_mappingObject



20
21
22
# File 'lib/mail/multibyte/unicode.rb', line 20

def swapcase_mapping
  uppercase_mapping > 0 ? uppercase_mapping : lowercase_mapping
end