Commit 88fe30f6 by Jason Axelson

Fixes from code-review

parent a714f8fc
...@@ -67,7 +67,7 @@ The symbol of the emoji surrounded with colons ...@@ -67,7 +67,7 @@ The symbol of the emoji surrounded with colons
#### .symbol #### .symbol
The symbol of the emoji surrounded with colons The symbol of the emoji
Rumoji.encode("😭") {|emoji| emoji.code} Rumoji.encode("😭") {|emoji| emoji.code}
#=> "sob" #=> "sob"
......
...@@ -13,8 +13,10 @@ module Rumoji ...@@ -13,8 +13,10 @@ module Rumoji
if block_given? if block_given?
yield emoji yield emoji
else else
emoji.code || match emoji.code
end end
else
match
end end
end end
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment