Top Level Namespace
Defined Under Namespace
Modules: Readme
Instance Method Summary collapse
Instance Method Details
#validate_uuid(uuid) ⇒ Object
5 6 7 8 9 |
# File 'lib/readme/payload.rb', line 5 def validate_uuid(uuid) return if uuid.nil? uuid.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$/i) end |