Project

arukamo

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
2 semantic methods to test the presence of objects.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.9
~> 10.4
~> 0.31
~> 0.10
~> 0.8
 Project Readme

Arukamo

Build Status Dependency Status Gem Version Inline docs Documentation

あるかも?!

Rubies

Installation

Add this line to your application's Gemfile:

gem 'arukamo'

And then execute:

$ bundle

Or install it yourself as:

$ gem install arukamo

Usage

Because the parent class of all classes, BasicObject, is an explicit blank class, each of its instances SHOULD be considered as a null object.

Also, an object exists if all of the following methods MAY return false:

  • nil?
  • blank?
  • empty?
  • equal?(false)
  • public_methods(false).empty?
  • zero?

When an object exists, the #aru? method returns true. Otherwise, false. #nai? is the opposite.

BasicObject.new.aru?  # => false
nil.nai?              # => true
''.aru?               # => false
42.aru?               # => true
0.0.aru?              # => false
[].aru?               # => false
{}.aru?               # => false

Versioning

Arukamo follows Semantic Versioning 2.0.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

See LICENSE.md file.