Sha256: ee7b13ab80837cb7a185ef098dd5ff97f632d11ef8784f9ca2f5657faefbb5a4

Contents?: true

Size: 378 Bytes

Versions: 4

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

require_relative 'drawer'

module Prawn
  module Emoji
    module Drawable
      def draw_text!(text, options)
        text_without_emoji = emoji_drawer.draw(text.to_s, options)
        super text_without_emoji, options
      end

      private

      def emoji_drawer
        @emoji_drawer ||= Emoji::Drawer.new(self)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prawn-emoji-3.3.0 lib/prawn/emoji/drawable.rb
prawn-emoji-3.2.0 lib/prawn/emoji/drawable.rb
prawn-emoji-3.1.0 lib/prawn/emoji/drawable.rb
prawn-emoji-3.0.0 lib/prawn/emoji/drawable.rb