You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
docuseal/lib/pdf_icons.rb

35 lines
526 B

# frozen_string_literal: true
module PdfIcons
PATH = Rails.root.join('lib/pdf_icons')
WIDTH = 240
HEIGHT = 240
module_function
def check_io
StringIO.new(check_data)
end
def paperclip_io
StringIO.new(paperclip_data)
end
def logo_io
StringIO.new(logo_data)
end
def check_data
@check_data ||= PATH.join('check.png').read
end
def paperclip_data
@paperclip_data ||= PATH.join('paperclip.png').read
end
def logo_data
@logo_data ||= PATH.join('logo.png').read
end
end