Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/comply/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#uuid?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/comply/ext/string.rb', line 2

def uuid?
  !!(self =~ /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/)
end