Class: Mail::Multibyte::Unicode::Codepoint
- Inherits:
-
Object
- Object
- Mail::Multibyte::Unicode::Codepoint
- Defined in:
- lib/mail/multibyte/unicode.rb
Overview
Holds data about a codepoint in the Unicode database.
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#combining_class ⇒ Object
Returns the value of attribute combining_class.
-
#decomp_mapping ⇒ Object
Returns the value of attribute decomp_mapping.
-
#decomp_type ⇒ Object
Returns the value of attribute decomp_type.
-
#lowercase_mapping ⇒ Object
Returns the value of attribute lowercase_mapping.
-
#uppercase_mapping ⇒ Object
Returns the value of attribute uppercase_mapping.
Instance Method Summary collapse
-
#initialize ⇒ Codepoint
constructor
Initializing Codepoint object with default values.
- #swapcase_mapping ⇒ Object
Constructor Details
#initialize ⇒ Codepoint
Initializing Codepoint object with default values
15 16 17 18 19 |
# File 'lib/mail/multibyte/unicode.rb', line 15 def initialize @combining_class = 0 @uppercase_mapping = 0 @lowercase_mapping = 0 end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
12 13 14 |
# File 'lib/mail/multibyte/unicode.rb', line 12 def code @code end |
#combining_class ⇒ Object
Returns the value of attribute combining_class.
12 13 14 |
# File 'lib/mail/multibyte/unicode.rb', line 12 def combining_class @combining_class end |
#decomp_mapping ⇒ Object
Returns the value of attribute decomp_mapping.
12 13 14 |
# File 'lib/mail/multibyte/unicode.rb', line 12 def decomp_mapping @decomp_mapping end |
#decomp_type ⇒ Object
Returns the value of attribute decomp_type.
12 13 14 |
# File 'lib/mail/multibyte/unicode.rb', line 12 def decomp_type @decomp_type end |
#lowercase_mapping ⇒ Object
Returns the value of attribute lowercase_mapping.
12 13 14 |
# File 'lib/mail/multibyte/unicode.rb', line 12 def lowercase_mapping @lowercase_mapping end |
#uppercase_mapping ⇒ Object
Returns the value of attribute uppercase_mapping.
12 13 14 |
# File 'lib/mail/multibyte/unicode.rb', line 12 def uppercase_mapping @uppercase_mapping end |
Instance Method Details
#swapcase_mapping ⇒ Object
21 22 23 |
# File 'lib/mail/multibyte/unicode.rb', line 21 def swapcase_mapping uppercase_mapping > 0 ? uppercase_mapping : lowercase_mapping end |