Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaszkorecki/9002429 to your computer and use it in GitHub Desktop.
Save lukaszkorecki/9002429 to your computer and use it in GitHub Desktop.
F = [
(B = 1 ),
(C = 2 )
]
puts "#{F.inspect} #{B.inspect} #{C.inspect}"
# output:
# [1, 2] 1 2
# I don't want to write this:
B = 1
C = 2
F = [ B, C]
@leocassarani
Copy link

F = (B, C = 1, 2)

@leocassarani
Copy link

:trollface:

@leocassarani
Copy link

B, C = F = [1, 2]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment