Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有任何 Gem 可用于使用 java.util.UUID 在 Jruby 中生成 UUID?
我不知道 gem,但这是 JRuby 中的微不足道的代码:
$ jirb irb(main):001:0> uuid = java.util.UUID.randomUUID => #<Java::JavaUtil::UUID:0x37a6af53> irb(main):002:0> puts uuid 944b0019-d122-4f2b-9e85-23836e0f3d72