A library of utility services and concerns.
Service object for transforming strings.
Internally, an instance of this class is used to StringTools to perform string transformations.
This class should define a compatible interface with ActiveSupport::Inflector, i.e. all methods defined on Toolbox::Inflector should have a corresponding method on ActiveSupport::Inflector with a superset of the parameters. (The reverse is not true).
#initialize(rules: nil) => Inflector
#rules => SleepingKingStudios::Tools::Toobox::Inflector::Rules (readonly)
#camelize(word, uppercase_first_letter = true) => String
Converts a lowercase, underscore-separated string to CamelCase.
#pluralize(word) => String
Transforms the word to a plural, lowercase form.
#singularize(word) => String
Transforms the word to a singular, lowercase form.
#underscore(word) => String
Transforms the word to a lowercase, underscore-separated form.
Back to Documentation | Reference | SleepingKingStudios | SleepingKingStudios::Tools | SleepingKingStudios::Tools::Toolbox