Exception: Shitceptions::ShittyEmojiError
- Inherits:
-
StandardError
- Object
- StandardError
- Shitceptions::ShittyEmojiError
- Defined in:
- lib/shitceptions/error.rb
Overview
Instance Method Summary collapse
-
#initialize(name) ⇒ ShittyEmojiError
constructor
A new instance of ShittyEmojiError.
- #to_s ⇒ Object
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_s ⇒ Object
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 |