没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
www.trustie.net/open_source_projects | 主页 > 开源项目社区 > stringray |
stringray
|
0 | 0 | 0 |
贡献者 | 讨论 | 代码提交 |
StringRayStringRay exposes a powerful method to split a String into an Array of words, and further allows you to include Enumerable, thus exposing many of the most useful Array methods on your Strings.
Usageclass String; include StringRay; end
"Oi! I'm a string, do something fun with me!".enumerate do |word|
p word
end
class String; make_enumerable!; end
"Who, what, when, where, why? The questions these are.".map do |word|
word << word0.chr
endGettingThe authoritative source for this project is available at http://github.com/elliottcable/stringray. You can clone your own copy with the following command:
git clone git://github.com/elliottcable/stringray.gitIf you want to make changes to the codebase, you need to fork your own GitHub repository for said changes. Send a pullrequest to elliottcable when you've got something ready for the master branch that you think should be merged.
RequirementsTo use StringRay, you need... nothing!
To develop and contribute to StringRay, however, you need:
gem install rake gem install rspec gem install rcov gem install echoe