alexappelt

Untitled

Jul 6th, 2019
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.24 KB | None | 0 0
  1. #Removendo Espaços do inicio e do final da String utilizando .strip no final da variavel
  2. #Utilizamos '!' para realizar a alteração na variavel
  3.  
  4. nome_completo=" Alex Appelt "
  5.  
  6. puts nome_completo
  7.  
  8. nome_completo.strip!
  9.  
  10. puts nome_completo
Add Comment
Please, Sign In to add comment