Ruby 3.1 : Install2023/07/14 |
Install Ruby 3.1.
|
|
[1] | Install Ruby 3.1 and try to run test script. |
root@dlp:~#
root@dlp:~# apt -y install ruby3.1 ruby -v ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [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 ! |