Module: Somemoji

Defined in:
lib/somemoji.rb,
lib/somemoji/emoji.rb,
lib/somemoji/version.rb,
lib/somemoji/command_builder.rb,
lib/somemoji/emoji_collection.rb,
lib/somemoji/commands/base_command.rb,
lib/somemoji/command_line_arguments.rb,
lib/somemoji/commands/error_command.rb,
lib/somemoji/commands/extract_command.rb,
lib/somemoji/emoji_extractors/noto_emoji_extractor.rb,
lib/somemoji/emoji_extractors/base_emoji_extractor.rb,
lib/somemoji/emoji_extractors/apple_emoji_extractor.rb,
lib/somemoji/emoji_extractors/twemoji_emoji_extractor.rb,
lib/somemoji/emoji_extractors/emoji_one_emoji_extractor.rb,
lib/somemoji/emoji_extractors/downloadable_emoji_extractor.rb

Defined Under Namespace

Modules: Commands, EmojiExtractors Classes: CommandBuilder, CommandLineArguments, Emoji, EmojiCollection

Constant Summary collapse

VERSION =
"0.4.2"

Class Method Summary collapse

Class Method Details

.apple_emoji_collectionSomemoji::EmojiCollection

Returns an emoji collection including Apple emojis

Examples:

Somemoji.apple_emoji_collection.count #=> 1285


23
24
25
# File 'lib/somemoji.rb', line 23

def apple_emoji_collection
  @apple_emoji_collection ||= ::Somemoji::EmojiCollection.new(apple_emojis)
end

.apple_supported_characters_pathString



28
29
30
# File 'lib/somemoji.rb', line 28

def apple_supported_characters_path
  ::File.expand_path("../../data/apple_supported_characters.json", __FILE__)
end

.emoji_collectionSomemoji::EmojiCollection

Returns an emoji collection including all emojis

Examples:

Somemoji.emoji_collection.class #=> Somemoji::EmojiCollection
Somemoji.emoji_collection.count #=> 1794
Somemoji.emoji_collection.first.class #=> Somemoji::Emoji


37
38
39
# File 'lib/somemoji.rb', line 37

def emoji_collection
  @emoji_collection ||= ::Somemoji::EmojiCollection.new(emojis)
end

.emoji_definitions_directory_pathString



49
50
51
# File 'lib/somemoji.rb', line 49

def emoji_definitions_directory_path
  ::File.expand_path("../../data/emoji_definitions", __FILE__)
end

.emoji_one_emoji_collectionSomemoji::EmojiCollection

Returns an emoji collection including EmojiOne emojis

Examples:

Somemoji.emoji_one_emoji_collection.count #=> 1794


44
45
46
# File 'lib/somemoji.rb', line 44

def emoji_one_emoji_collection
  emoji_collection
end

.noto_emoji_collectionSomemoji::EmojiCollection

Returns an emoji collection including Noto emojis

Examples:

Somemoji.noto_emoji_collection.count #=> 1541


56
57
58
# File 'lib/somemoji.rb', line 56

def noto_emoji_collection
  @noto_emoji_collection ||= ::Somemoji::EmojiCollection.new(noto_emojis)
end

.noto_supported_characters_pathString



61
62
63
# File 'lib/somemoji.rb', line 61

def noto_supported_characters_path
  ::File.expand_path("../../data/noto_supported_characters.json", __FILE__)
end

.twemoji_emoji_collectionSomemoji::EmojiCollection

Returns an emoji collection including Twemoji emojis

Examples:

Somemoji.twemoji_emoji_collection.count #=> 1626


68
69
70
# File 'lib/somemoji.rb', line 68

def twemoji_emoji_collection
  @twemoji_emoji_collection ||= ::Somemoji::EmojiCollection.new(twemoji_emojis)
end

.twemoji_supported_characters_pathString



73
74
75
# File 'lib/somemoji.rb', line 73

def twemoji_supported_characters_path
  ::File.expand_path("../../data/twemoji_supported_characters.json", __FILE__)
end