Sha256: 913857d95c3a5313d527060dd1295fef51e7eeed5a6b2cd3926bd2abdd58f833

Contents?: true

Size: 119 Bytes

Versions: 1

Compression:

Stored size: 119 Bytes

Contents

class String
  def is_uuid?
    !!self.match(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
separatum-0.1.0 lib/separatum/string.rb