Project

fu_nil

0.0
No commit activity in last 3 years
No release in over 3 years
Allows the ruby nil to be used in math operators. Allows the amazing division of zero.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 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