Class: Prawn::Emoji::Index
- Inherits:
-
Object
- Object
- Prawn::Emoji::Index
- Defined in:
- lib/prawn/emoji/index.rb
Instance Attribute Summary collapse
-
#codepoints ⇒ Object
readonly
Returns the value of attribute codepoints.
Instance Method Summary collapse
- #include?(codepoint) ⇒ Boolean
-
#initialize ⇒ Index
constructor
A new instance of Index.
Constructor Details
#initialize ⇒ Index
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
#codepoints ⇒ Object (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
14 15 16 |
# File 'lib/prawn/emoji/index.rb', line 14 def include?(codepoint) codepoints.include?(codepoint) end |