Ruby 3.3 : Install2024/08/23 |
Install Ruby. |
|
[1] | Install Ruby 3.3 and try to run test script. |
root@dlp:~ #
root@dlp:~ # pkg install -y ruby33 ruby33 -v ruby 3.3.3 (2024-06-12 revision f1c7b6f435) [amd64-freebsd14] # 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:~ # ruby33 ruby_test.rb Hello Ruby World ! |