Class: HOALInflector

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

Overview

Inflector to support the HOAL style of spelling HOALife

Instance Method Summary collapse

Instance Method Details

#camelize(basename, _abspath) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/hoal_inflector.rb', line 6

def camelize(basename, _abspath)
  case basename
  when /(ccr_)(.+)/
    "CCR#{super(Regexp.last_match(2), nil)}"
  when 'hoalife'
    'HOALife'
  when /Error/
    'Error'
  else
    super
  end
end