对核心 Ruby 类的一些有用扩展
Powerpack offers some useful extensions to the standard Ruby classes
(kind of like ActiveSupport, but less ambitious and more modular).
The project has several design goals:
Add this line to your application's Gemfile (if you're using bundler, that is):
gem 'powerpack'And then execute:
$ bundleOr install it yourself as:
$ gem install powerpackA listing of the extensions provided by Powerpack is available here.
To load the entire powerpack do:
require 'powerpack'To load only the String extensions do:
require 'powerpack/string'To load only a specific extension like String#format do:
require 'powerpack/string/format'Powerpack's changelog is available here.
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)暂无开放 Issues,或尚未同步最近议题。