class Omnibar::Emoji

Constants

DICTIONARY

Public Class Methods

Public Instance Methods

key() click to toggle source
# File lib/omnibar/queries/emoji.rb, line 13
def key
  search.find(input) || ''
end
perform!() click to toggle source
# File lib/omnibar/queries/emoji.rb, line 25
def perform!
  copy_to_clipboard DICTIONARY[search.find(input)]
end
relevance() click to toggle source
# File lib/omnibar/queries/emoji.rb, line 21
def relevance
  input.levenshtein_similar(key)
end
result() click to toggle source
# File lib/omnibar/queries/emoji.rb, line 4
def result
  return if input.empty?
  "#{key} :: #{value}" if (key and value)
end
value() click to toggle source
# File lib/omnibar/queries/emoji.rb, line 17
def value
  DICTIONARY[key]
end