Sha256: 40c5b975322ef28043ce2eed902c7c4d9438d92a17514fd5fd38bd267391547a
Contents?: true
Size: 758 Bytes
Versions: 1
Compression:
Stored size: 758 Bytes
Contents
# encoding: utf-8 # (c) 2011 Martin Kozák (martinkozak@martinkozak.net) require "uuid" ## # General QRPC module. # module QRPC ## # General generators module. # module Generator ## # UUID generator. # @since 0.9.0 # class UUID ## # Generates UUID as ID for given object. # # @param [Object] object required object # @return [String] new ID # @since 0.9.0 # def generate(object = nil) ::UUID.generate(:compact).to_sym end alias :generate! :generate end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qrpc-0.9.0 | lib/qrpc/generator/uuid.rb |