Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

UUID#class support

  • Loading branch information...
commit 7257199e671934c3c96a755524ac6c38fc885d3e 1 parent 0a6e3bc
Tony Arcieri authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/builtins/uuid.re
7 src/builtins/uuid.re
View
@@ -1,12 +1,15 @@
#
# uuid.re: (Almost) universally unique identifiers
# Beware, these may re-occur after 2^82 calls! The horror!
-# Copyright (C)2010 Tony Arcieri
+# Copyright (C)2010-11 Tony Arcieri
#
# Redistribution is permitted under the MIT license. See LICENSE for details.
#
-class UUID
+class UUID
+ # UUIDs are UUIDs!
+ def class; UUID; end
+
def to_s()
"#<UUID:#{erl.ref_to_list(self).to_string().sub('#Ref<', '')}"
end
Please sign in to comment.
Something went wrong with that request. Please try again.