Module: Kernel
- Defined in:
- lib/didx.rb
Class Method Summary collapse
Class Method Details
.DIDX(did) ⇒ Object
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/didx.rb', line 34 def DIDX(did) if did.is_a?(DIDX::Generic) did elsif did = String.try_convert(did) DIDX.parse(did) else raise ArgumentError, "bad argument (expected DID object or DID string)" end end |