Class: RRs::Inflector
- Inherits:
-
Zeitwerk::Inflector
- Object
- Zeitwerk::Inflector
- RRs::Inflector
- Defined in:
- lib/rrs/inflector.rb
Instance Method Summary collapse
Instance Method Details
#camelize(basename, abspath) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/rrs/inflector.rb', line 4 def camelize(basename, abspath) if basename =~ /\Arrs(.*)/ "RRs" + super($1, abspath) elsif basename =~ /\Aipv(.*)/ "IPv" + super($1, abspath) elsif basename =~ /\Ain(.*)/ && basename != "inflector" "IN" + super($1, abspath) elsif ::RRs::Maps::QTYPE_MAP.values.any? { |v| basename.upcase == v.to_s } basename.upcase else super end end |