How to Sleep in Ruby - Code Snippet

How to perform 'Sleep' in Ruby.

example.rb
# Task: Sleep
# Language: Ruby

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