class IknowParams::Serializer::UUID

Public Instance Methods

load(str) click to toggle source
Calls superclass method IknowParams::Serializer::String#load
# File lib/iknow_params/serializer.rb, line 236
def load(str)
  matches_type!(str, err: LoadError)
  super
end
matches_type?(str) click to toggle source
Calls superclass method IknowParams::Serializer#matches_type?
# File lib/iknow_params/serializer.rb, line 241
def matches_type?(str)
  super && /[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}/i.match?(str)
end