Skip to content
Simple extensions of conversion between Bool and Int values.
Swift Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Boonary
Example
.gitignore
.travis.yml
Boonary.podspec
Gemfile
LICENSE
README.md
_Pods.xcodeproj

README.md

Boonary

CI Status Version License Platform

Simple extensions of conversion between Bool and Int values.

Example

Bool to Int

print(false.binary) // 0
print(true.binary)  // 1

Int to Bool

print(0.boolean!) // false
print(1.boolean!) // true
print(2.boolean)  // nil

Installation

pod 'Boonary'

Author

Tomohiro Imaizumi, bonriki.life@gmail.com

License

Boonary is available under the MIT license. See the LICENSE file for more info.

You can’t perform that action at this time.