Sha256: 4334f0f5f7fb60ed85b2153906b2b806949be3d69486e56576737085d6ea2386
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
require 'active_fedora/noid/version' require 'active_fedora/noid/config' require 'active_fedora/noid/service' require 'active_fedora/noid/synchronized_minter' module ActiveFedora module Noid class << self def configure(&block) yield config end def config @config ||= Config.new end def treeify(identifier) head = identifier.split('/').first head.gsub!(/#.*/, '') (head.scan(/..?/).first(4) + [identifier]).join('/') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_fedora-noid-1.1.2 | lib/active_fedora/noid.rb |