Sha256: 067f01b2ba723971674f5bd6208de3600d7b10bbc618b09f48c508796e39e565

Contents?: true

Size: 370 Bytes

Versions: 1

Compression:

Stored size: 370 Bytes

Contents

require 'active_fedora/noid/version'
require 'active_fedora/noid/config'

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

1 entries across 1 versions & 1 rubygems

Version Path
active_fedora-noid-0.0.1 lib/active_fedora/noid.rb