Added functionality for some ruby core classes
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
rails
test
.gitignore
README.rdoc
Rakefile
VERSION
jakewendt-ruby_extension.gemspec

README.rdoc

RubyExtension (Gem / Rails Plugin)

Usage

config.gem 'jakewendt-ruby_extension',
  :source => 'http://rubygems.org'

ToDo

  • add legitimate text to Rakefile

Notes

Minor additions to some Ruby core classes. (This may be better as a gem.)

Array arrange(new_array_index=[]) drop_blanks capitalize capitalize! downcase average median first_index to_boolean / to_b true? (explicitly so) false? (explicitly so) true_xor_false?

Hash delete_keys_matching!(regex) delete_keys!(*keys) dig(*keys)

String to_params_hash uniq

NilClass split(*args) include?(*args)

Integer factorial

Object to_boolean true? (explicitly so) false? (explicitly so)

Gemified with Jeweler

vi Rakefile
rake version:write

rake version:bump:patch
rake version:bump:minor
rake version:bump:major

rake gemspec

rake install
rake release

Copyright © 2010 [Jake Wendt], released under the MIT license