Stype

String is string, but the content is different. Sometimes we need to distinguish them.

Installation

Add this line to your application's Gemfile:

gem 'stype'

And then execute:

$ bundle

Or install it yourself as:

$ gem install stype

Usage

According the content of the string, you can convert it to the specific object. ex: "http://www.example.com/projects".to_uri\ .host .path .port

Contributing

  1. Fork it ( http://github.com//stype/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request