class Shitceptions::ShittyEmojiError

@author Seth Vargo <sethvargo@gmail.com>

Public Class Methods

new(name) click to toggle source
# File lib/shitceptions/error.rb, line 15
def initialize(name)
  @name
end

Public Instance Methods

to_s() click to toggle source
# File lib/shitceptions/error.rb, line 19
def to_s
  [
    "Unknown emoji #{@name.inspect}. Did you mean one of:",
    "",
    Shitceptions::EMOJIS.keys.join("\n"),
    "",
    "?"
  ]
end