Ruby for Instance / Values

# String value
"hello world"

# Numeric value
42

# Boolean value
true

# Array value
[1, 2, 3, 4, 5]

# Hash value
{
  "name" => "John",
  "age" => 42,
  "is_admin" => true
}

# Symbol value
:apple

# Range value
1..10

# Regular expression value
/\d+/

# Proc value
Proc.new { |x| x * x }

# Nil value
nil

Next: variables

made with by dfxe / source / license