Sha256: f63750d56e748879b67cd9e73cfc30ce0e96928b4d84e9b606caf8701fc5fd6a

Contents?: true

Size: 140 Bytes

Versions: 28

Compression:

Stored size: 140 Bytes

Contents

module MongoModel
  module Types
    class Set < Array
      def cast(obj)
        ::Set.new(::Array.wrap(obj))
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
mongomodel-0.4.3 lib/mongomodel/support/types/set.rb
mongomodel-0.4.2 lib/mongomodel/support/types/set.rb
mongomodel-0.4.1 lib/mongomodel/support/types/set.rb
mongomodel-0.4.0 lib/mongomodel/support/types/set.rb
mongomodel-0.3.6 lib/mongomodel/support/types/set.rb
mongomodel-0.3.5 lib/mongomodel/support/types/set.rb
mongomodel-0.3.4 lib/mongomodel/support/types/set.rb
mongomodel-0.3.3 lib/mongomodel/support/types/set.rb
mongomodel-0.3.2 lib/mongomodel/support/types/set.rb
mongomodel-0.3.1 lib/mongomodel/support/types/set.rb
mongomodel-0.3.0 lib/mongomodel/support/types/set.rb
mongomodel-0.2.20 lib/mongomodel/support/types/set.rb
mongomodel-0.2.19 lib/mongomodel/support/types/set.rb
mongomodel-0.2.18 lib/mongomodel/support/types/set.rb
mongomodel-0.2.17 lib/mongomodel/support/types/set.rb
mongomodel-0.2.16 lib/mongomodel/support/types/set.rb
mongomodel-0.2.15 lib/mongomodel/support/types/set.rb
mongomodel-0.2.14 lib/mongomodel/support/types/set.rb
mongomodel-0.2.13 lib/mongomodel/support/types/set.rb
mongomodel-0.2.12 lib/mongomodel/support/types/set.rb