# Variables
greeting = 'Good morning'
puts greeting
Variable assignment
irb(main):043:0> name = "Damian"
=> "Damian"
irb(main):044:0> new_name = name # The 'new_name' variable points to the same point in memory as 'name' does, not to the 'name' variable, so they are not related (they are immutable). The assignment is passed by value, and not by reference.
=> "Damian"
irb(main):045:0> new_name
=> "Damian"
irb(main):046:0> name = "Marty"
=> "Marty"
irb(main):047:0> new_name
=> "Damian"