Arukamo
あるかも?!
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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License
See LICENSE.md
file.