Sha256: 82a6538349a825e29f2dfbbe3186842e3f761d2ac1914dca8183e5e8a073538c

Contents?: true

Size: 319 Bytes

Versions: 11

Compression:

Stored size: 319 Bytes

Contents

module Xml
  module Kit
    # This class is used primary for generating ID.
    # https://www.w3.org/2001/XMLSchema.xsd
    class Id
      # Generate an ID that conforms to the XML Schema.
      # https://www.w3.org/2001/XMLSchema.xsd
      def self.generate
        "_#{SecureRandom.uuid}"
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
xml-kit-0.1.11 lib/xml/kit/id.rb
xml-kit-0.1.10 lib/xml/kit/id.rb
xml-kit-0.1.9 lib/xml/kit/id.rb
xml-kit-0.1.8 lib/xml/kit/id.rb
xml-kit-0.1.7 lib/xml/kit/id.rb
xml-kit-0.1.6 lib/xml/kit/id.rb
xml-kit-0.1.5 lib/xml/kit/id.rb
xml-kit-0.1.4 lib/xml/kit/id.rb
xml-kit-0.1.3 lib/xml/kit/id.rb
xml-kit-0.1.2 lib/xml/kit/id.rb
xml-kit-0.1.1 lib/xml/kit/id.rb