Class: Set
Instance Method Summary collapse
-
#to_json(*args) ⇒ Object
(also: #as_json)
Serialize a Set as it’s close cousin - the array.
Instance Method Details
#to_json(*args) ⇒ Object Also known as: as_json
Serialize a Set as it’s close cousin - the array
5 6 7 |
# File 'lib/chozo/core_ext/set.rb', line 5 def to_json(*args) self.to_a.to_json(*args) end |