Sha256: 0422d46c87d398f9110b670bb9a9af22caedcdb8a65ef7dffc03efe05249a5cc

Contents?: true

Size: 456 Bytes

Versions: 8

Compression:

Stored size: 456 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)
        (identifier.scan(/..?/).first(4) + [identifier]).join('/')
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
active_fedora-noid-1.1.1 lib/active_fedora/noid.rb
active_fedora-noid-1.1.0 lib/active_fedora/noid.rb
active_fedora-noid-1.0.3 lib/active_fedora/noid.rb
active_fedora-noid-1.0.2 lib/active_fedora/noid.rb
active_fedora-noid-1.0.1 lib/active_fedora/noid.rb
active_fedora-noid-0.3.0 lib/active_fedora/noid.rb
active_fedora-noid-0.2.0 lib/active_fedora/noid.rb
active_fedora-noid-0.1.0 lib/active_fedora/noid.rb