https://github.com/mtchavez/fu-nil
FU NIL
https://github.com/mtchavez/fu-nil
Last synced: 2 months ago
JSON representation
FU NIL
- Host: GitHub
- URL: https://github.com/mtchavez/fu-nil
- Owner: mtchavez
- Created: 2012-06-22T21:32:54.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-06-22T22:08:16.000Z (almost 13 years ago)
- Last Synced: 2025-03-04T17:43:55.578Z (3 months ago)
- Language: Ruby
- Size: 97.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FU NIL
## Description
From recent frustrations a co-worker had with nil and division of zero in Ruby comes the fu-nil gem. Not pronounced foo but rather Eff You as a giant middle finger to the Ruby nil and not being allowed to be used in math operators. The division by zero is an added luxury to the fu-nil gem.
## Installation
gem install fu_nil
irb
require 'rubygems'
require 'fu_nil'
5 + nil + 3 # 8
100.0 / 0 # 0
100 / nil # 0