Sha256: 2bb82da867d986b2eb6b1dc93e0b297420491932bcb7962545b07cdf1db71033

Contents?: true

Size: 622 Bytes

Versions: 2

Compression:

Stored size: 622 Bytes

Contents

# frozen_string_literal: true

require 'cocina/models/version'
require 'zeitwerk'
require 'dry-struct'
require 'dry-types'

# Help Zeitwerk find some of our classes
class CocinaModelsInflector < Zeitwerk::Inflector
  def camelize(basename, _abspath)
    case basename
    when 'dro'
      'DRO'
    when 'version'
      'VERSION'
    else
      super
    end
  end
end

loader = Zeitwerk::Loader.new
loader.inflector = CocinaModelsInflector.new
loader.push_dir(File.absolute_path("#{__FILE__}/../.."))
loader.setup

module Cocina
  module Models
    class Error < StandardError; end
    # Your code goes here...
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cocina-models-0.4.1 lib/cocina/models.rb
cocina-models-0.4.0 lib/cocina/models.rb