Class: Ucode::Unicode::Plane
- Inherits:
-
Struct
- Object
- Struct
- Ucode::Unicode::Plane
- Defined in:
- lib/ucode/unicode/plane.rb
Overview
A Unicode plane — a contiguous range of 65_536 codepoints. There are 17 planes (0–16). Only 7 have official short names.
Pure value object: carries data, nothing else. Not a lutaml-model (those are serialization DTOs). Constructed frozen by Catalog.
Instance Attribute Summary collapse
-
#assigned_count ⇒ Object
Returns the value of attribute assigned_count.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#number ⇒ Object
Returns the value of attribute number.
-
#range ⇒ Object
Returns the value of attribute range.
-
#short_name ⇒ Object
Returns the value of attribute short_name.
Instance Method Summary collapse
Instance Attribute Details
#assigned_count ⇒ Object
Returns the value of attribute assigned_count
10 11 12 |
# File 'lib/ucode/unicode/plane.rb', line 10 def assigned_count @assigned_count end |
#display_name ⇒ Object
Returns the value of attribute display_name
10 11 12 |
# File 'lib/ucode/unicode/plane.rb', line 10 def display_name @display_name end |
#number ⇒ Object
Returns the value of attribute number
10 11 12 |
# File 'lib/ucode/unicode/plane.rb', line 10 def number @number end |
#range ⇒ Object
Returns the value of attribute range
10 11 12 |
# File 'lib/ucode/unicode/plane.rb', line 10 def range @range end |
#short_name ⇒ Object
Returns the value of attribute short_name
10 11 12 |
# File 'lib/ucode/unicode/plane.rb', line 10 def short_name @short_name end |
Instance Method Details
#cover?(codepoint) ⇒ Boolean
18 19 20 |
# File 'lib/ucode/unicode/plane.rb', line 18 def cover?(codepoint) range.cover?(codepoint) end |