Sha256: 141064a3c5da2926a27d9e1ee7c07550e31b302f34286f31d74c7dd8c9048e61
Contents?: true
Size: 777 Bytes
Versions: 1
Compression:
Stored size: 777 Bytes
Contents
# encoding: utf-8 # (c) 2011 Martin Kozák (martinkozak@martinkozak.net) require "hash-utils/object" # >= 1.1.0 ## # General QRPC module. # module QRPC ## # General generators module. # @since 0.9.0 # module Generator ## # Ruby object ID generator. # @since 0.9.0 # class ObjectID ## # Generates Ruby object ID as ID for given object. # # @param [Object] object required object # @return [Symbol] new ID # def generate(object) object.object_id 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/object-id.rb |