shitceptions 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shitceptions.rb +1 -0
- data/lib/shitceptions/version.rb +1 -1
- metadata +1 -1
data/lib/shitceptions.rb
CHANGED
@@ -56,6 +56,7 @@ module Shitceptions
|
|
56
56
|
# @raise [Shitceptions::ShittyEmojiError]
|
57
57
|
# if the given emoji name does not exist
|
58
58
|
def shittify(klass, emoji_name)
|
59
|
+
return unless enabled?
|
59
60
|
raise ShittyArgumentError.new(klass) unless klass.kind_of?(Class)
|
60
61
|
|
61
62
|
emoji = EMOJIS[emoji_name.to_s.downcase.gsub(/[[:space:]]/, '_').to_sym]
|
data/lib/shitceptions/version.rb
CHANGED