Class: CocinaModelsInflector

Inherits:
Zeitwerk::Inflector
  • Object
show all
Defined in:
lib/cocina/models.rb

Overview

Help Zeitwerk find some of our classes

Constant Summary collapse

INFLECTIONS =
{
  'doi' => 'DOI',
  'dro' => 'DRO',
  'request_dro' => 'RequestDRO',
  'dro_access' => 'DROAccess',
  'dro_lite' => 'DROLite',
  'dro_structural' => 'DROStructural',
  'dro_with_metadata' => 'DROWithMetadata',
  'request_dro_structural' => 'RequestDROStructural',
  'rspec' => 'RSpec',
  'value_uri' => 'ValueURI',
  'version' => 'VERSION'
}.freeze

Instance Method Summary collapse

Instance Method Details

#camelize(basename, _abspath) ⇒ Object



31
32
33
# File 'lib/cocina/models.rb', line 31

def camelize(basename, _abspath)
  INFLECTIONS.fetch(basename) { super }
end