Created
November 10, 2016 12:40
-
-
Save talesmantovani/35d4263c7db5100950388763db54e975 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Mimimitizador < Struct.new :frase | |
def mimimi | |
frase.gsub(/['ã', 'a', 'e', 'o', 'u', 'á', 'é', 'ê', 'í', 'ó']/, "i") | |
end | |
def mememe | |
url_template = "https://memegen.link/custom/#{frase}/#{mimimi}.jpg?alt=https://i.imgur.com/UvvvAJP.jpg&font=impact" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment