How to Get File Extension in Ruby - Code Snippet

How to perform 'Get File Extension' in Ruby.

example.rb
# Task: Get File Extension
# Language: Ruby

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