Sha256: 5d5da2a6a0b509564437ec9c877d714c3e2dec5343eac70471afb3388f3b8d6b
Contents?: true
Size: 563 Bytes
Versions: 4
Compression:
Stored size: 563 Bytes
Contents
module Hanami class Application module Autoloader # Allows the Hanami standard inflector (from dry-inflector) to be used with Zeitwerk class InflectorAdapter def initialize(inflector) @inflector = inflector end def camelize(basename, _abspath) # Discard unused `_abspath` argument before calling our own inflector's # `#camelize` (which takes only one argument) inflector.camelize(basename) end private attr_reader :inflector end end end end
Version data entries
4 entries across 4 versions & 1 rubygems