Sha256: eb685de83a296487499630f2e1472986a7c05735b054633ad94b61bf85e1041a
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
module Toy module Extensions module UUID def to_store(value, *) return nil if value.nil? return value if value.is_a?(self) new(value) end def from_store(value, *) return nil if value.nil? return value if value.is_a?(self) 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.2 | lib/toy/extensions/uuid.rb |
toystore-0.13.1 | lib/toy/extensions/uuid.rb |