Method: JSON::Util::UUID.pack

Defined in:
lib/json-schema/uri/uuid.rb

.pack(tl, tm, th, ch, cl, n) ⇒ Object

The ‘primitive constructor’ of this class Note UUID.pack(uuid.unpack) == uuid



214
215
216
217
218
219
# File 'lib/json-schema/uri/uuid.rb', line 214

def pack tl, tm, th, ch, cl, n
	raw = [tl, tm, th, ch, cl, n].pack "NnnCCa6"
	ret = new raw
	ret.freeze
	ret
end