Class: Emojidex::UTF

Inherits:
Collection show all
Defined in:
lib/emojidex/utf.rb

Overview

listing and search of standard UTF emoji

Instance Attribute Summary

Attributes inherited from Collection

#categories, #emoji, #raster_source_path, #source_path, #vector_source_path

Attributes included from CollectionCache

#cache_path

Instance Method Summary collapse

Methods inherited from Collection

#add_emoji, #category, #category?, #collect, #each, #find_by_code, #find_by_code_ja, #find_by_moji, #load_local_collection, #map, #search, #select

Methods included from CollectionAssetInformation

#generate_checksums, #generate_paths, #get_checksums, #get_paths

Methods included from CollectionCache

#cache!, #cache_index, #setup_cache, #write_index

Constructor Details

#initializeUTF

Returns a new instance of UTF.



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/emojidex/utf.rb', line 6

def initialize
  super
  if defined? Emojidex::Vectors
    @vector_source_path = Emojidex::Vectors.path + '/utf/'
    load_local_collection @vector_source_path
  end
  if defined? Emojidex::Rasters
    @raster_source_path = Emojidex::Rasters.path + '/utf/'
    load_local_collection @raster_source_path
  end
  # TODO: load from service
end