Class: FreightKit::Inflector

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

Instance Method Summary collapse

Instance Method Details

#camelize(basename, abspath) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/freight_kit.rb', line 23

def camelize(basename, abspath)
  if basename =~ /\Ahttp_(.*)/
    return "HTTP#{super(::Regexp.last_match(1), abspath)}"
  end

  super
end