Class: Ucode::Models::Block
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Ucode::Models::Block
- Defined in:
- lib/ucode/models/block.rb
Overview
One row from Blocks.txt. The id is the verbatim value from the
file (e.g. ASCII, CJK_Ext_A, Greek_And_Coptic) — used as the
folder name and JSON block identifier. NEVER slugified.
Instance Method Summary collapse
Instance Method Details
#covers?(codepoint) ⇒ Boolean
29 30 31 |
# File 'lib/ucode/models/block.rb', line 29 def covers?(codepoint) codepoint >= range_first && codepoint <= range_last end |
#size ⇒ Object
33 34 35 |
# File 'lib/ucode/models/block.rb', line 33 def size range_last - range_first + 1 end |