Sha256: 079acf02a5730e090a46d13e6bf138429c939c0780146d0ae9788ef1e5f24b2b
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
require 'active_fedora/noid/version' require 'active_fedora/noid/config' require 'active_fedora/noid/engine' require 'active_fedora/noid/service' require 'active_fedora/noid/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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_fedora-noid-2.0.0.beta5 | lib/active_fedora/noid.rb |
active_fedora-noid-2.0.0.beta4 | lib/active_fedora/noid.rb |