StringUtils gem repo StringUtils is a library that allows various string manipulation Usage: $ gem install string_utils In your project: require 'string_utils' StringUtils.truncate("hello world", 10, "...") #=> "hello..." StringUtils.normalize_name "\302\240 Gran Via/Avda.de Asturias " #=> :Gran Via / Avda. de Asturias"
Project
string_utils
Provides useful string utils like "truncate to word".
Compatible with ruby >= 1.8. Benefits from active_support if available on ruby < 1.9.
Tested with:
* ruby 1.8.7 (2010-04-19 patchlevel 253) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2010.02
*
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
Development
Dependencies
Project Readme