Class: QRPC::Generator::ObjectID

Inherits:
Object
  • Object
show all
Defined in:
lib/qrpc/generator/object-id.rb

Overview

Ruby object ID generator.

Since:

  • 0.9.0

Instance Method Summary collapse

Instance Method Details

#generate(object) ⇒ Symbol Also known as: generate!

Generates Ruby object ID as ID for given object.

Parameters:

  • object (Object)

    required object

Returns:

  • (Symbol)

    new ID

Since:

  • 0.9.0



33
34
35
# File 'lib/qrpc/generator/object-id.rb', line 33

def generate(object)
    object.object_id
end