Skip to content

Instantly share code, notes, and snippets.

@Insood
Created Oct 26, 2018
Embed
What would you like to do?
s = Struct.new(:a,:b,:c)
a = [1,2,3]
b = s.new(*a)
puts b.a
puts b.b
puts b.c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment