Module: Omnibus::NullArgumentable::ClassMethods

Defined in:
lib/omnibus/null_argumentable.rb

Instance Method Summary collapse

Instance Method Details

#null?(object) ⇒ true, false

Check if the given object is null.

Returns:

  • (true, false)


41
42
43
# File 'lib/omnibus/null_argumentable.rb', line 41

def null?(object)
  object.equal?(NULL)
end