ruby get min value from array

# Define an array of numbers
numbers = [5, 2, 8, 1, 7]

# Use the `min` method to find the minimum value in the array
min_value = numbers.min

# Print the minimum value
puts "The minimum value in the array is: #{min_value}"