Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 155 Bytes

multiple_assignment.md

File metadata and controls

17 lines (12 loc) · 155 Bytes

Multiple Assignment

A simple example

def some_method
  [x, y, z]
end

x, y, z = some_method

Swap values

x, y = y, x