class Prawn::Emoji::Image
Constants
- STORE
Attributes
emoji_char[R]
Public Class Methods
new(emoji_char)
click to toggle source
# File lib/prawn/emoji/image.rb, line 14 def initialize(emoji_char) @emoji_char = emoji_char end
Public Instance Methods
path()
click to toggle source
# File lib/prawn/emoji/image.rb, line 23 def path STORE.join("#{emoji_char.codepoint}.png").to_s end
render(document, at:)
click to toggle 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