Sha256: 40789ea4ddd1734242d2cad4d56383970c6124db7c5433b86c224433d4db9848

Contents?: true

Size: 277 Bytes

Versions: 2

Compression:

Stored size: 277 Bytes

Contents

module Toy
  module Extensions
    module UUID
      def to_store(value, *)
        SimpleUUID::UUID.new(value)
      end

      def from_store(value, *)
        SimpleUUID::UUID.new(value)
      end
    end
  end
end

class SimpleUUID::UUID
  extend Toy::Extensions::UUID
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
toystore-0.13.0 lib/toy/extensions/uuid.rb
toystore-0.12.0 lib/toy/extensions/uuid.rb