public
Description: Easily find out the truthiness of any Ruby object.
Homepage:
Clone URL: git://github.com/ymendel/truthy.git
Click here to lend your support to: truthy and make a donation at www.pledgie.com !
truthy /
name age message
file .gitignore Thu Aug 07 15:05:48 -0700 2008 Ignoring pkg for later [ymendel]
file History.txt Thu Aug 07 15:39:15 -0700 2008 Setting version (1.0.0), filling out README. [ymendel]
file License.txt Thu Aug 07 15:04:04 -0700 2008 Initial creation [ymendel]
file Manifest.txt Thu Aug 07 15:06:42 -0700 2008 Removing PostInstall.txt [ymendel]
file README.txt Thu Aug 07 15:39:15 -0700 2008 Setting version (1.0.0), filling out README. [ymendel]
file Rakefile Thu Aug 07 15:04:04 -0700 2008 Initial creation [ymendel]
directory config/ Thu Aug 07 15:47:16 -0700 2008 Fixing hoe config. [ymendel]
directory lib/ Thu Aug 07 15:39:15 -0700 2008 Setting version (1.0.0), filling out README. [ymendel]
directory script/ Thu Aug 07 15:04:04 -0700 2008 Initial creation [ymendel]
file setup.rb Thu Aug 07 15:04:04 -0700 2008 Initial creation [ymendel]
directory spec/ Tue Aug 12 13:20:43 -0700 2008 Fixed specs to ensure #truthy? returns only tru... [ymendel]
directory tasks/ Thu Aug 07 15:04:04 -0700 2008 Initial creation [ymendel]
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