Debian 11 Bullseye
Sponsored Link

Ruby 2.7 : Install2021/09/22

 
Install Ruby.
[1] Install Ruby 2.7.
root@dlp:~#
apt -y install ruby2.7
root@dlp:~#
ruby -v

ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-linux-gnu]

# verify to create test script

root@dlp:~# cat > ruby_test.rb <<'EOF' 
msg = Class.send(:new, String);
mymsg = msg.send(:new, "Hello Ruby World !\n");
STDOUT.send(:write, mymsg)
EOF 

root@dlp:~#
ruby ruby_test.rb

Hello Ruby World !
Matched Content