Sha256: f2899588b2c3f2db58bd4d9eb71f7a00fbc175206892dba28ccc3c91a852ac11
Contents?: true
Size: 551 Bytes
Versions: 16
Compression:
Stored size: 551 Bytes
Contents
require 'active_support/inflector' module 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 & 2 rubygems