GUID

J

J. mp

Hi folks,

This is an easy one, but I can't find a way to do it.
It's there, in ruby, any easy means to generate an GUID (Global Unique
Identifier)?

Thank,
 
T

Tim Hunter

Assaf said:
require_gem 'uuid'
puts UUID.new

"require_gem" is obsolete, use "gem" if you need to specify a specific
version of a gem. Mostly you should just use plain "require" to load a
library that was installed by RubyGems.
 
A

Assaf

"require_gem" is obsolete, use "gem" if you need to specify a specific
version of a gem. Mostly you should just use plain "require" to load a
library that was installed by RubyGems.

I should know that :)

I guess it's time to replace the old docs I was copying & pasting
from.

Assaf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,778
Messages
2,569,605
Members
45,238
Latest member
Top CryptoPodcasts

Latest Threads

Top