Class: NKJ::Unicode2JISMapping

Inherits:
Object
  • Object
show all
Defined in:
lib/nkj/unicode2jis_mapping.rb

Class Method Summary collapse

Class Method Details

.exists?(unicode_point) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/nkj/unicode2jis_mapping.rb', line 14

def self.exists?(unicode_point)
  DATA.key?(unicode_point)
end

.fetch(unicode_point) ⇒ Object



10
11
12
# File 'lib/nkj/unicode2jis_mapping.rb', line 10

def self.fetch(unicode_point)
  DATA[unicode_point]
end