Class: Prawn::Emoji::Index

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIndex

Returns a new instance of Index.



10
11
12
# File 'lib/prawn/emoji/index.rb', line 10

def initialize
  @codepoints = load_emoji_codepoints
end

Instance Attribute Details

#codepointsObject (readonly)

Returns the value of attribute codepoints.



8
9
10
# File 'lib/prawn/emoji/index.rb', line 8

def codepoints
  @codepoints
end

Instance Method Details

#include?(codepoint) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/prawn/emoji/index.rb', line 14

def include?(codepoint)
  codepoints.include?(codepoint)
end