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

Version Path
emojidex-0.5.3 lib/emojidex/defaults.rb
emojidex-0.5.2 lib/emojidex/defaults.rb
emojidex-0.5.1 lib/emojidex/defaults.rb
emojidex-0.5.0 lib/emojidex/defaults.rb
emojidex-0.4.2 lib/emojidex/defaults.rb
emojidex-0.4.1 lib/emojidex/defaults.rb
emojidex-0.4.0 lib/emojidex/defaults.rb
emojidex-0.3.5 lib/emojidex/defaults.rb
emojidex-0.3.4 lib/emojidex/defaults.rb
emojidex-0.3.3 lib/emojidex/defaults.rb
emojidex-0.3.2 lib/emojidex/defaults.rb
emojidex-0.3.1 lib/emojidex/defaults.rb
emojidex-0.3.0 lib/emojidex/defaults.rb
emojidex-0.2.3 lib/emojidex/defaults.rb
emojidex-0.2.2 lib/emojidex/defaults.rb
emojidex-0.2.1 lib/emojidex/defaults.rb