Class: Prawn::Emoji::Image
- Inherits:
-
Object
- Object
- Prawn::Emoji::Image
- Defined in:
- lib/prawn/emoji/image.rb
Constant Summary collapse
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
Returns a new instance of Image.
13 14 15 |
# File 'lib/prawn/emoji/image.rb', line 13 def initialize(unicode) @unicode = unicode end |
Instance Attribute Details
#unicode ⇒ Object (readonly)
Returns the value of attribute unicode.
11 12 13 |
# File 'lib/prawn/emoji/image.rb', line 11 def unicode @unicode end |
Instance Method Details
#==(other) ⇒ Object
21 22 23 |
# File 'lib/prawn/emoji/image.rb', line 21 def ==(other) unicode == other.unicode end |
#path ⇒ Object
17 18 19 |
# File 'lib/prawn/emoji/image.rb', line 17 def path STORE.join("#{unicode.codepoint}.png").to_s end |