Print multiple ruby variables on the same line -


is there method print multiple ruby variables on same line? in example below:

env = gets() name = gets() puts "deleting #{name} in #{env}" 

i'm trying put variables in system (cmd) also, , can't set these 2 variables in same line... output :

deleting name in env 

thanks, vlad

use

env = gets().chomp name = gets().chomp 

Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -