Sha256: dd8a21efe2eadbf71914467a6b01459d8046c037cce44989f83e8f8c56c0ea00
Contents?: true
Size: 851 Bytes
Versions: 19
Compression:
Stored size: 851 Bytes
Contents
if defined? ActiveSupport require 'active_support/core_ext/string/inflections' else require 'padrino-support/inflections' class String def pluralize Padrino::Inflections.pluralize(TemporaryString.new(to_str)).to_str end def underscore Padrino::Inflections.underscore(TemporaryString.new(to_str)).to_str end def camelize Padrino::Inflections.camelize(TemporaryString.new(to_str)).to_str end def classify Padrino::Inflections.classify(TemporaryString.new(to_str)).to_str end def constantize Padrino::Inflections.constantize(TemporaryString.new(to_str)) end end class TemporaryString < String undef_method :pluralize undef_method :underscore undef_method :camelize undef_method :classify undef_method :constantize def to_s; self; end end end
Version data entries
19 entries across 19 versions & 1 rubygems