Why Ruby Requires Full Service Names?

Hello,

I am just curious why the way to call services in Ruby requires the full name, while in Python, Lua, and other scripting languages, it doesn’t needed.

For example, in Ruby:

def check_services
  system("clear")
  puts "Checking Nginx and MySQL..."
  sleep 1.7
  puts "---------------------------------"
  system("sudo systemctl status nginx.service")
  sleep 0.8
  puts "---------------------------------"
  system("sudo systemctl status mysql.service")
end

While in Lua and Python, it only needs to be written as “nginx” without “.service”:

def check_services():
    """Check Nginx and MySQL."""
    os.system("clear")
    print("Checking The Nginx and MySQL...")
    time.sleep(1.7)
    print("---------------------------------")
    os.system("sudo systemctl status nginx")
    print("---------------------------------")
    os.system("sudo systemctl status mysql")
local function check_services()
    os.execute("clear")
    print("Checking Nginx and MySQL...")
    os.execute("sleep 1.7")
    print("---------------------------------")
    os.execute("sudo systemctl status nginx")
    os.execute("sleep 0.8")
    print("---------------------------------")
    os.execute("sudo systemctl status mysql")
end

I apologize if this question is basic; perhaps others might find this information useful.

Thank you in advance.