class Prawn::Emoji::Image
Constants
- STORE
Attributes
Public Class Methods
Source
# File lib/prawn/emoji/image.rb, line 14 def initialize(emoji_char) @emoji_char = emoji_char end
Public Instance Methods
Source
# File lib/prawn/emoji/image.rb, line 23 def path STORE.join("#{emoji_char.codepoint}.png").to_s end
Source
# File lib/prawn/emoji/image.rb, line 18 def render(document, at:) x, y = at document.image(path, at: [x, y + height], width: width) end