Class: Prawn::Emoji::Image
- Inherits:
-
Object
- Object
- Prawn::Emoji::Image
- Defined in:
- lib/prawn/emoji/image.rb
Constant Summary collapse
- STORE =
Emoji.root.join 'emoji', 'images'
Instance Attribute Summary collapse
-
#unicode ⇒ Object
readonly
Returns the value of attribute unicode.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(unicode) ⇒ Image
constructor
A new instance of Image.
- #path ⇒ Object
Constructor Details
#initialize(unicode) ⇒ Image
12 13 14 |
# File 'lib/prawn/emoji/image.rb', line 12 def initialize(unicode) @unicode = unicode end |
Instance Attribute Details
#unicode ⇒ Object (readonly)
Returns the value of attribute unicode.
10 11 12 |
# File 'lib/prawn/emoji/image.rb', line 10 def unicode @unicode end |
Instance Method Details
#==(other) ⇒ Object
20 21 22 |
# File 'lib/prawn/emoji/image.rb', line 20 def ==(other) unicode == other.unicode end |
#path ⇒ Object
16 17 18 |
# File 'lib/prawn/emoji/image.rb', line 16 def path STORE.join("#{codepoint}.png").to_s end |