class Extant::Coercers::Uuid
Constants
- UUID_REGEX
Public Instance Methods
coerce()
click to toggle source
# File lib/extant/coercers/uuid.rb, line 5 def coerce if value.to_s =~ UUID_REGEX self.coerced = true value.to_s else UncoercedValue end end