Skip to content
This repository

Some extensions to the Ruby programming language.

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 COPYING
Octocat-spinner-32 ChangeLog
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 ruby-nuggets.gemspec
= ruby-nuggets - Some extensions to the Ruby programming language


This documentation refers to ruby-nuggets version 0.9.8


ruby-nuggets provides a collection of extensions to Ruby core classes. In
its effort, it's similar to projects like Facets[]
and Extensions[] (or even
Labrador[]), though not as ambitious ;-)
This is simply where I put stuff that I need on a more or less regular basis
or that struck me as interesting while surfing the web, reading books, or
following discussions on ruby-talk.

There are several ways to get at the nuggets you're interested in:

  # The usual way: Just require() what you need
  require 'nuggets/object/singleton_class'

  # The more fancy way ;-) (see the documentation of Nuggets() for more examples)
  require 'nuggets'
  Nuggets(:object => 'singleton_class', :string => %w[nsub sub_with_md])

  # Finally, get everything there is...
  require 'nuggets/all'

Please be aware that some of the things herein might not work as expected or
cause other libraries to misbehave. Use at your own risk!


Source code::
Travis CI::


* Jens Wille <>


Copyright (C) 2007-2014 Jens Wille

ruby-nuggets is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.

ruby-nuggets is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more

You should have received a copy of the GNU Affero General Public License along
with ruby-nuggets. If not, see <>.
Something went wrong with that request. Please try again.