Class: Set

Inherits:
Object show all
Defined in:
lib/chozo/core_ext/set.rb

Instance Method Summary collapse

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