Project

only_blank

0.0
No release in over a year
A tiny library for bring the awesome `blank?` method to ruby. Along with the fastest [fast_blank] gem for `String#blank?`.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 0.5

Runtime

 Project Readme

only_blank Build StatusGem Version

A tiny library for bring the ruby on rails awesome blank? method and friends to ruby.

Getting Started

Add to your Gemfile

gem 'only_blank'

Then, you get three method blank?, present?, presence defined on following class free.

FalseClass, Object, NilClass, Numeric, String, TrueClass.

Credits

Basically, this gem just a tiny wrapper around two library.

  1. The sequel blank extension which implement the same blank? logic as Ruby On Rails.

  2. fast_blank gem, which is a simple C extension which provides a very fast implementation of String#blank? method.