instance method Set#to_a

to_a -> Array[permalink][rdoc]

self を配列に変換します。要素の順序は不定です。

require 'set'
set = Set['hello', 'world']
p set.to_a #=> ["hello", "world"]