Project

neganil

0.0
No commit activity in last 3 years
No release in over 3 years
add methods such as not_nil?, not_blank?, not_empty?
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.12
~> 5.0
~> 10.0
 Project Readme

Neganil

Negative nil extends core classes in order to add some helpers as not_nil?, not_blank?, not_empty? and not_include?..

Installation

Add this line to your application's Gemfile:

gem 'neganil'

And then execute:

$ bundle

Or install it yourself as:

$ gem install neganil

Usage

Object.new.not_nil?
"I'm not blank !".not_blank?
{foo: "baz"}.not_include?(:another_key)
[1, 2, 3].not_empty?

Development

After checking out the repo, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mehdi-farsi/neganil.

We have a lot of idea that we put in the issue list. Feel free to have a look to it.

License

The gem is available as open source under the terms of the MIT License.

Please, feel free to star the project if you like it ! :)