lib/daylight/request_id.rb
##
# Creates a session to use the same `uuid`.  Supply your own `uuid`
# with optional parameter or one will be generated for you.
#
# When providing a block, the session will be automatically cleared.
# Otherwise, you must manually `clear!` the session when it is finished.
#
# See
# clear!
Creates a session to use the same `uuid`.  Supply your own `uuid`
with optional parameter or one will be generated for you.

When providing a block, the session will be automatically cleared.
Otherwise, you must manually `clear!` the session when it is finished.

See
clear!
Creates a session to use the same ` uuid ` . Supply your own ` uuid ` with optional parameter or one will be generated for you . When providing a block the session will be automatically cleared . Otherwise you must manually ` clear! ` the session when it is finished . See clear!
def use id=generate
    self.custom_id = id
    if block_given?
      yield custom_id
      clear!
    else
      custom_id
    end
  end
def use id = generate self . custom_id = id if block_given? yield custom_id clear! else custom_id end end
Creates a session to use the same `uuid`.
Creates a session to use the same ` uuid ` .
id
<not_specific>
generate
<not_specific>