class Emoji

Emoji class

Constants

LIST

Constant tih all the emoji sets

Attributes

selected_set[R]

Public Class Methods

list() click to toggle source
# File lib/emoji.rb, line 41
def self.list
  LIST
end
new(emoji_spec) click to toggle source
# File lib/emoji.rb, line 21
def initialize(emoji_spec)
  @selected_set = if !emoji_spec.nil? && LIST.key?(emoji_spec.to_sym)
    emoji_spec.to_sym
  else
    LIST.keys.sample
  end
end

Public Instance Methods

failed() click to toggle source
# File lib/emoji.rb, line 37
def failed
  LIST[@selected_set][2]
end
passed() click to toggle source
# File lib/emoji.rb, line 29
def passed
  LIST[@selected_set][0]
end
pending() click to toggle source
# File lib/emoji.rb, line 33
def pending
  LIST[@selected_set][1]
end