Extensions to ruby objects.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
Gemfile
README.md
Rakefile
ruby_extensions.gemspec

README.md

Ruby Extensions

Installation

Place in your Gemfile and run bundle

gem "ruby_extensions", git: "git@github.com:gristmill/ruby_extensions.git" # , tag: 'v0.3.0'

String Class Extensions

 # Hash a string
 "password".to_sha1
 # => "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8"

 # Extract email addresses from a string
 "Hello sean@gristmill.io, how are you?".to_email
 # => ["sean@gristmill.io"]

 # Turn a string into a url friendly slug
 "hello world how are you today?".to_slug
 # => "hello-world-how-are-you-today"

Testing

At least for now...

ruby -Itest test/string.rb