Last active
May 6, 2019 01:44
-
-
Save douglasmartins7/e3f84b12581de9bbd932b60f7e88d66e to your computer and use it in GitHub Desktop.
Ruby
This file contains hidden or 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
| #funçao que chama ela mesmo | |
| #ponto de atençao ela precisa sempre de uma valvula de escape como o return abaixo | |
| def recursivo count= 1 | |
| puts "Douglas" | |
| return if cont >= 10 | |
| recursivo count +1 | |
| end | |
| def captura_servico i = 1 | |
| puts "Implementar o dado para a busca da API #{i}" | |
| return if i <= 3 | |
| captura_servico i + 1 | |
| end | |
| captura_servico |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment