env – Shell/Envionment Variables
Show all the variables in the shell.
env
Show all the variables in the shell.
env
This will let you find whether a variable is defined in ruby.
if(defined? var_name) then
print var_name + " is set"
end