Sha256: 9d1683b6a81e346eca0d79342db81937a75a1ad1d7753ece58719331e27c96ba

Contents?: true

Size: 172 Bytes

Versions: 9

Compression:

Stored size: 172 Bytes

Contents

require 'set'

class Set
  # Serialize a Set as it's close cousin - the array
  def to_json(*args)
    self.to_a.to_json(*args)
  end
  alias_method :as_json, :to_json
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
chozo-0.6.1 lib/chozo/core_ext/set.rb
chozo-0.6.0 lib/chozo/core_ext/set.rb
chozo-0.5.0 lib/chozo/core_ext/set.rb
chozo-0.4.2 lib/chozo/core_ext/set.rb
chozo-0.4.1 lib/chozo/core_ext/set.rb
chozo-0.4.0 lib/chozo/core_ext/set.rb
chozo-0.3.0 lib/chozo/core_ext/set.rb
chozo-0.2.3 lib/chozo/core_ext/set.rb
chozo-0.2.2 lib/chozo/core_ext/set.rb