Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
JaniJegoroff committed Sep 10, 2014
1 parent 864961a commit bed04da
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,39 @@ to_boolean
==========

Ruby core extension that converts string and integer values to boolean.

Installation
==========

In your Gemfile:

`gem 'to_boolean'`

Install gem manually:

`$ gem install to_boolean`

Usage
==========

`'true'.to_boolean #=> true`

`1.to_boolean #=> true`

`'false'.to_boolean #=> false`

`0.to_boolean #=> false`

See more from **spec/spec_to_boolean.rb**.

Run the tests
==========

`$ bundle`

`$ rake`

License
==========

MIT

0 comments on commit bed04da

Please sign in to comment.