📅  最后修改于: 2023-12-03 15:34:45.682000             🧑  作者: Mango
Ruby is a dynamic, reflective, object-oriented, general-purpose programming language. It was designed and developed in the mid-1990s by Yukihiro "Matz" Matsumoto in Japan. Ruby emphasizes simplicity, flexibility, and productivity.
# Hello World program in Ruby
puts "Hello World!"
# Create a class in Ruby
class Person
attr_accessor :name, :age
end
# Create an object of the Person class
person = Person.new
person.name = "John"
person.age = 30
puts person.name
puts person.age
Overall, Ruby is a powerful programming language with a vibrant community and many useful resources. Whether you're a beginner or an experienced programmer, it's worth exploring Ruby and all it has to offer.