Class: ModInflector

Inherits:
Zeitwerk::Inflector
  • Object
show all
Defined in:
lib/card/mod_inflector.rb

Instance Method Summary collapse

Instance Method Details

#camelize(basename, abspath) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'lib/card/mod_inflector.rb', line 2

def camelize basename, abspath
  ActiveSupport::Dependencies::ZeitwerkIntegration::Inflector.camelize(basename, abspath)

  # if basename =~ /\Ahtml_(.*)/
  #   ActiveSupport::Dependencies::ZeitwerkIntegration::Inflector.camelize(basename, abspath)
  #   # "HTML" + super($1, abspath)
  # else
  #   super
  # end
end

#inflect(overrides) ⇒ Object



13
14
15
# File 'lib/card/mod_inflector.rb', line 13

def inflect overrides
  ActiveSupport::Dependencies::ZeitwerkIntegration::Inflector.inflect(overrides)
end