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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -