lib/emojidex/defaults.rb in emojidex-0.0.23 vs lib/emojidex/defaults.rb in emojidex-0.1.0
- old
+ new
@@ -1,14 +1,35 @@
module Emojidex
# Global defines for emojidex
class Defaults
+ @@selected_sizes = [:mdpi, :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
end
end