#{variable_to_display}
For example, to if x=5, to display "The value of X is 5", do:
x=5
puts "The value of X is #{x}"
To test this, save the above two lines to a file called string_interp.rb and then do
ruby string_interp.rb
Assorted notes on my development experiences, and other useful workflow and environment tips, for Windows and Linux.
#{variable_to_display}
x=5
puts "The value of X is #{x}"
ruby string_interp.rb
rake clean
rake
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
gem update --system
gem install rails
sudo apt-get --purge remove ruby-rvm
sudo rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
xrandr --output monitorName --primary
xrandr --output DVI-I-2 --primary
#!/bin/bash
# Author: Andrew Martin
# Credit: http://ubuntuforums.org/showthread.php?t=1309247
echo "Enter the primary display from the following:" # prompt for the display
xrandr --prop | grep "[^dis]connected" | cut --delimiter=" " -f1 # query connected monitors
read choice # read the users's choice of monitor
xrandr --output $choice --primary # set the primary monitor
chmod +x monitor-switcher.sh
./monitor-switcher.sh