Sha256: 9a4eb9b0911905e946503678d5396e1b7dc63834dbcfdb9b3d55b95f5dde14dc
Contents?: true
Size: 934 Bytes
Versions: 16
Compression:
Stored size: 934 Bytes
Contents
module Emojidex # Global defines for emojidex class Defaults @@selected_sizes = [:hdpi, :px32] @@selected_formats = [:png] def self.sizes { ldpi: 13, mdpi: 18, hdpi: 27, xhdpi: 36, xxhdpi: 54, xxxhdpi: 72, px8: 8, px16: 16, px32: 32, px64: 64, px128: 128, px256: 256, px512: 512, hanko: 90, seal: 320 } end def self.selected_sizes(sizes = nil) @@selected_sizes = sizes unless sizes.nil? @@selected_sizes end def self.formats [:svg, :png] end def self.selected_formats(formats = nil) @@selected_formats = formats unless formats.nil? @@selected_formats end def self.limit 50 end def self.lang 'en' end def self.encapsulator ':' end def self.system_cache_path ENV['EMOJI_CACHE'] || "#{ENV['HOME']}/.emojidex/" end class << self alias :locale :lang end end end
Version data entries
16 entries across 16 versions & 1 rubygems