Sha256: 5bd8049e7440b6a44124397287382fcd61f265c735b3229491dd48069ca8c348
Contents?: true
Size: 326 Bytes
Versions: 24
Compression:
Stored size: 326 Bytes
Contents
require 'set' module Toy module Extensions module Set def store_default [].to_set end def to_store(value, *) value.to_a end def from_store(value, *) value.nil? ? store_default : value.to_set end end end end class Set extend Toy::Extensions::Set end
Version data entries
24 entries across 24 versions & 1 rubygems