Class: Prawn::Emoji::Index
- Inherits:
-
Object
- Object
- Prawn::Emoji::Index
- Defined in:
- lib/prawn/emoji/index.rb
Constant Summary collapse
- EXCLUSION_CHARS =
'1234567890#*'.freeze
Instance Attribute Summary collapse
-
#codepoints ⇒ Object
readonly
Returns the value of attribute codepoints.
Instance Method Summary collapse
-
#initialize ⇒ Index
constructor
A new instance of Index.
- #to_regexp ⇒ Object
Constructor Details
#initialize ⇒ Index
Returns a new instance of Index.
12 13 14 |
# File 'lib/prawn/emoji/index.rb', line 12 def initialize @codepoints = load_emoji_codepoints end |
Instance Attribute Details
#codepoints ⇒ Object (readonly)
Returns the value of attribute codepoints.
10 11 12 |
# File 'lib/prawn/emoji/index.rb', line 10 def codepoints @codepoints end |
Instance Method Details
#to_regexp ⇒ Object
16 17 18 |
# File 'lib/prawn/emoji/index.rb', line 16 def to_regexp @regexp ||= build_regexp end |