hashes

Estimated reading time: 1 minute

hashes

  • hashes are similar to dictonary
users = {
  "name" => "mostafa",
  "age" => 21,
  "status" => "dev"
}
puts users["status"]
# dev
ruby