class DataBase
Constants
- DATA_REGEXP
Format: codepoint(s) ; property=Yes # [count] (character(s)) name
Attributes
characters[R]
codepoints[R]
count[R]
name[R]
property[R]
raw[R]
Public Class Methods
new(raw)
click to toggle source
# File lib/emoji/data/data_base.rb, line 22 def initialize(raw) @raw = raw matched = raw.match(DATA_REGEXP) @codepoints = matched[:codepoints].rstrip @property = matched[:property] @count = matched[:count] @characters = matched[:characters] @name = matched[:name] end
Public Instance Methods
to_h()
click to toggle source
# File lib/emoji/data/data_base.rb, line 33 def to_h Hash( codepoints: codepoints, property: property, count: count, characters: characters, name: name ) end