Comment

# Step 1: Define a class named 'Person'
class Person
  # Step 2: Initialize method to set initial values for instance variables
  def initialize(name, age)
    @name = name
    @age = age
  end

  # Step 3: Define a method to display the person's details
  def display_details
    puts "Name: #{@name}"
    puts "Age: #{@age}"
  end
end

# Step 4: Create an instance of the 'Person' class
person = Person.new("John Doe", 25)

# Step 5: Call the 'display_details' method to show the person's details
person.display_details