lib/emojidex.rb in emojidex-0.0.23 vs lib/emojidex.rb in emojidex-0.1.0
- old
+ new
@@ -1,10 +1,12 @@
-require 'json'
-require 'emojidex/emoji'
-require 'emojidex/collection_checker'
-require 'emojidex/collection'
-require 'emojidex/utf'
-require 'emojidex/extended'
-require 'emojidex/category'
-require 'emojidex/categories'
-require 'emojidex/client'
-require 'emojidex/error'
+require_relative 'emojidex/defaults'
+require_relative 'emojidex/data/emoji'
+require_relative 'emojidex/data/collection'
+require_relative 'emojidex/data/category'
+require_relative 'emojidex/data/categories'
+
+# Master emojidex module. Contains a few general helper functions.
+module Emojidex
+ def self.escape_code(code)
+ code.tr(' ', '_')
+ end
+end