Class: ActiveSupport::Multibyte::Unicode::Codepoint
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activesupport/lib/active_support/multibyte/unicode.rb |
Overview
Holds data about a codepoint in the ::ActiveSupport::Multibyte::Unicode
database.
Class Method Summary
-
.new ⇒ Codepoint
constructor
Initializing Codepoint object with default values.
Instance Attribute Summary
- #code rw
- #combining_class rw
- #decomp_mapping rw
- #decomp_type rw
- #lowercase_mapping rw
- #uppercase_mapping rw
Instance Method Summary
Constructor Details
.new ⇒ Codepoint
Initializing Codepoint object with default values
# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 301
def initialize @combining_class = 0 @uppercase_mapping = 0 @lowercase_mapping = 0 end
Instance Attribute Details
#code (rw)
[ GitHub ]# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 298
attr_accessor :code, :combining_class, :decomp_type, :decomp_mapping, :uppercase_mapping, :lowercase_mapping
#combining_class (rw)
[ GitHub ]# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 298
attr_accessor :code, :combining_class, :decomp_type, :decomp_mapping, :uppercase_mapping, :lowercase_mapping
#decomp_mapping (rw)
[ GitHub ]# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 298
attr_accessor :code, :combining_class, :decomp_type, :decomp_mapping, :uppercase_mapping, :lowercase_mapping
#decomp_type (rw)
[ GitHub ]# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 298
attr_accessor :code, :combining_class, :decomp_type, :decomp_mapping, :uppercase_mapping, :lowercase_mapping
#lowercase_mapping (rw)
[ GitHub ]# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 298
attr_accessor :code, :combining_class, :decomp_type, :decomp_mapping, :uppercase_mapping, :lowercase_mapping
#uppercase_mapping (rw)
[ GitHub ]# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 298
attr_accessor :code, :combining_class, :decomp_type, :decomp_mapping, :uppercase_mapping, :lowercase_mapping
Instance Method Details
#swapcase_mapping
[ GitHub ]# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 307
def swapcase_mapping uppercase_mapping > 0 ? uppercase_mapping : lowercase_mapping end