Marshal a set : Marshal « Development « Ruby






Marshal a set


require 'set'
puts Marshal.load(Marshal.dump(Set.new([1, 2, 3])))

 

Related examples in the same category

1.Marshal a string