Sha256: 19402f1d2f0dde3d0b794270fc565a213925bf260ea4d278b1d8c72364e8a1b9
Contents?: true
Size: 341 Bytes
Versions: 2
Compression:
Stored size: 341 Bytes
Contents
module Ezid class ProxyIdentifier attr_reader :id attr_accessor :__real def initialize(id) @id = id @__real = nil end protected def method_missing(name, *args, &block) if __real.nil? self.__real = Identifier.find(id) end __real.send(name, *args, &block) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ezid-client-1.3.0 | lib/ezid/proxy_identifier.rb |
ezid-client-1.2.0 | lib/ezid/proxy_identifier.rb |