Sha256: 7a211ba018307555ceef68e69c5d829ee3299fa18629b93cccbb3a3b163cff0f
Contents?: true
Size: 561 Bytes
Versions: 16
Compression:
Stored size: 561 Bytes
Contents
require 'active_support/inflector' module GovDelivery::TMS::CoreExt def demodulize(path) ActiveSupport::Inflector.demodulize(path) end def classify(str) ActiveSupport::Inflector.camelize(str) end def singularize(str) ActiveSupport::Inflector.singularize(str) end def pluralize(str) ActiveSupport::Inflector.pluralize(str) end def tmsify(klassname) ActiveSupport::Inflector.underscore(demodulize(klassname)) end def instance_class(klass) ActiveSupport::Inflector.constantize(singularize(klass.to_s)) end end
Version data entries
16 entries across 16 versions & 1 rubygems