Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/janijegoroff/to_boolean
Ruby core extension that converts string and integer values to boolean.
https://github.com/janijegoroff/to_boolean
Last synced: 8 days ago
JSON representation
Ruby core extension that converts string and integer values to boolean.
- Host: GitHub
- URL: https://github.com/janijegoroff/to_boolean
- Owner: JaniJegoroff
- Created: 2014-09-10T21:43:12.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-10-25T12:51:52.000Z (about 7 years ago)
- Last Synced: 2024-09-30T20:15:56.157Z (about 1 month ago)
- Language: Ruby
- Size: 11.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Gem Version](https://badge.fury.io/rb/to_boolean.svg)](http://badge.fury.io/rb/to_boolean)
[![Build Status](https://travis-ci.org/JaniJegoroff/to_boolean.svg?branch=master)](https://travis-ci.org/JaniJegoroff/to_boolean)
[![Coverage Status](https://coveralls.io/repos/JaniJegoroff/to_boolean/badge.svg?branch=master)](https://coveralls.io/r/JaniJegoroff/to_boolean?branch=master)
[![Code Climate](https://codeclimate.com/github/JaniJegoroff/to_boolean/badges/gpa.svg)](https://codeclimate.com/github/JaniJegoroff/to_boolean)
[![Dependency Status](https://gemnasium.com/JaniJegoroff/to_boolean.svg)](https://gemnasium.com/JaniJegoroff/to_boolean)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`
`$ bundle exec rake`
License
==========MIT