Class: Prawn::Emoji::Index

Inherits:
Object
  • Object
show all
Defined in:
lib/prawn/emoji/index.rb

Constant Summary collapse

EXCLUSION_CHARS =
'1234567890#*'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIndex

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

#codepointsObject (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_regexpObject



16
17
18
# File 'lib/prawn/emoji/index.rb', line 16

def to_regexp
  @regexp ||= build_regexp
end