How to Exit Program in Ruby - Code Snippet

How to perform 'Exit Program' in Ruby.

example.rb
# Task: Exit Program
# Language: Ruby

def exit_program() 
    # Implementation for Exit Program
    # TODO: Implement core logic here
    # Step 1: Prepare data
    # Step 2: Process Exit Program
    puts("Done");
end
AdSense Slot