Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hakanensari/certainty
An object that represents truth
https://github.com/hakanensari/certainty
Last synced: 23 days ago
JSON representation
An object that represents truth
- Host: GitHub
- URL: https://github.com/hakanensari/certainty
- Owner: hakanensari
- Created: 2011-08-19T12:27:01.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2011-08-24T00:13:23.000Z (about 13 years ago)
- Last Synced: 2024-04-24T01:43:38.936Z (7 months ago)
- Language: Ruby
- Homepage:
- Size: 165 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Certainty
Certainty provides __Boolean__, an object that represents truth in
Ruby.The library posits three truth values: true, false, or unknown.
[![travis](https://secure.travis-ci.org/hakanensari/certainty.png)](http://travis-ci.org/hakanensari/certainty)
## Usage
Add to your Gemfile.
gem 'certainty'
Require.
require 'certainty'
Inquire.
true.is_a? Boolean
=> trueTypecast.
Boolean("false")
=> false