class Xml::Kit::Id

This class is used primary for generating ID. www.w3.org/2001/XMLSchema.xsd

Public Class Methods

generate() click to toggle source

Generate an ID that conforms to the XML Schema. www.w3.org/2001/XMLSchema.xsd

# File lib/xml/kit/id.rb, line 10
def self.generate
  "_#{SecureRandom.uuid}"
end