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
27 28 29 |
# File 'lib/ucode/models/block.rb', line 27 def covers?(codepoint) codepoint >= range_first && codepoint <= range_last end |
#size ⇒ Object
31 32 33 |
# File 'lib/ucode/models/block.rb', line 31 def size range_last - range_first + 1 end |