123456789_123456789_123456789_123456789_123456789_

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

Instance Attribute Summary

Instance Method Summary

Constructor Details

.newCodepoint

Initializing Codepoint object with default values

[ GitHub ]

  
# File 'activesupport/lib/active_support/multibyte/unicode.rb', line 297

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 294

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 294

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 294

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 294

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 294

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 294

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 303

def swapcase_mapping
  uppercase_mapping > 0 ? uppercase_mapping : lowercase_mapping
end