ymendel / truthy
- Source
- Commits
- Network (2)
- Issues (0)
- Downloads (1)
- Wiki (1)
- Graphs
-
Tree:
c53516c
truthy /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
History.txt | ||
| |
License.txt | ||
| |
Manifest.txt | ||
| |
README.txt | ||
| |
Rakefile | ||
| |
config/ | ||
| |
lib/ | ||
| |
script/ | ||
| |
setup.rb | ||
| |
spec/ | ||
| |
tasks/ |
README.txt
= truthy
== DESCRIPTION:
This gem is to make it easier to discover the truth values of various Ruby
objects. Ask any object if it is truthy, and it will tell you.
== SYNOPSIS:
require 'truthy'
true.truthy? # => true
false.truthy? # => false
nil.truthy? # => false
[].truthy? # => true
[nil].truthy? # => true
%w[one two three].truthy? # => true
{}.truthy? # => true
{ 'one' => 1 }.truthy? # => true
''.truthy? # => true
' '.truthy? # => true
'hello'.truthy? # => true
The possibilities are endless.
== INSTALL:
* sudo gem install truthy


