Tiny refinements for Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
doc Fix links in docs Jan 3, 2016
spec move iterate into its own gem Jan 2, 2016
.editorconfig add .editorconfig Mar 29, 2015
.gitignore project meta file updates Apr 29, 2013
.rspec move rspec options to .rspec file Jan 14, 2014
.travis.yml travis: use latest 9k point release Jan 3, 2016
CHANGELOG.md Correct date in change log Jan 3, 2016
Gemfile refactor to use refinements; move to_proc to procstar gem; update doc… Feb 16, 2014
MIT-LICENSE.txt update readme & other project files Jan 1, 2016
README.md More readme Jan 3, 2016
Rakefile new rakefile Jan 3, 2016
sugar_refinery.gemspec Release 1.0 Jan 3, 2016


Ruby Sugar Refinery version travis

The Ruby Sugar Refinery is a collection of tiny refinements (declarative local core extensions) for Ruby.

Setup & usage

Add to Gemfile:

gem 'sugar_refinery', require: 'sugar_refinery/all'

Then add refinements to the current Ruby file or module:

using SugarRefinery::CamelSnake
using SugarRefinery::HashZip

"ClassName".to_snake # => "class_name"
Hash.zip [1,2,3], [4,5,6] # => {1=>4, 2=>5, 3=>6}

List of included refinements

Please see the documentation, the code or the specs!

The Sugar Refinery was Zucker before

This collection of core extensions used to be called zucker.

Missing former functionality? It might have been extracted into a separate micro gem:


Copyright (c) 2010-2016 Jan Lelis, released under the MIT license