Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created September 25, 2012 19:21
Show Gist options
  • Select an option

  • Save practicingruby/3783881 to your computer and use it in GitHub Desktop.

Select an option

Save practicingruby/3783881 to your computer and use it in GitHub Desktop.
require "simple_uuid"
class UUIDTracer < SimpleUUID::UUID
def initialize(*a, &b)
p [a, b] # replace this with a logger
super
end
end
SimpleUUID::UUID = UUIDTracer
p SimpleUUID::UUID.new.to_i
p SimpleUUID::UUID.new.to_i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment