class UUIDTools::UUID
Extendes the {UUIDTools::UUID} class, adding the ability to generate sequential UUID’s
Public Instance Methods
next()
click to toggle source
Increments the internal UUID
representation, returning a new UUID
that is different from, but greater, than the current sequence number
# File lib/SANStore/helpers/uuid.rb, line 27 def next next_uuid = self.to_i next_uuid += 1 # Return the newly created UUID return UUIDTools::UUID::parse_int(next_uuid) end