Exception: Shitceptions::ShittyEmojiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/shitceptions/error.rb

Overview

Author:

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ ShittyEmojiError

Returns a new instance of ShittyEmojiError.



15
16
17
# File 'lib/shitceptions/error.rb', line 15

def initialize(name)
  @name
end

Instance Method Details

#to_sObject



19
20
21
22
23
24
25
26
27
# 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