Ubuntu 22.04
Sponsored Link

Ruby 3.0 : Install2022/08/26

 
Install Ruby 3.0.
[1] Install Ruby 3.0 and try to run test script.
root@dlp:~#
apt -y install ruby3.0
root@dlp:~#
ruby -v

ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [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