Skip to content

Combining many of the benefits of Arrays and Strings, StringRay allows you to treat a String as an Array of words in many cases.

Notifications You must be signed in to change notification settings

Mikoangelo/stringray

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StringRay

StringRay 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.

Usage

class String; include StringRay; end

"Oi! I'm a string, do something fun with me!".each do |word|
  p word
end

Getting

The 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.git

If 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.

Requirements

To run git-blog, you need... nothing!

To develop and contribute to git-blog, you also need:

  • gem install rake
  • gem install rspec
  • gem install rcov
  • gem install echoe

About

Combining many of the benefits of Arrays and Strings, StringRay allows you to treat a String as an Array of words in many cases.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%