Class: Xml::Kit::Id
- Inherits:
-
Object
- Object
- Xml::Kit::Id
- Defined in:
- lib/xml/kit/id.rb
Overview
This class is used primary for generating ID. www.w3.org/2001/XMLSchema.xsd
Class Method Summary collapse
-
.generate ⇒ Object
Generate an ID that conforms to the XML Schema.
Class Method Details
.generate ⇒ Object
Generate an ID that conforms to the XML Schema. www.w3.org/2001/XMLSchema.xsd
10 11 12 |
# File 'lib/xml/kit/id.rb', line 10 def self.generate "_#{SecureRandom.uuid}" end |