Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. def fonctionAffichage()
  2. puts "resultat: #{arg1}"
  3. end
  4.  
  5. def premiereFonction()
  6. return arrayQuiVaBien
  7. end
  8.  
  9. def secondeFonction(premiereFonction) // ou arrayQuiVaBien en parametre si on le met en global
  10. for n in arrayQuiVaBien // ou arg1 ou $1 selon la syntaxe ruby
  11. do
  12. fonctionAffichage($n)
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement