Class: Object

Inherits:
BasicObject
Defined in:
lib/betterific/ruby_extensions.rb

Instance Method Summary collapse

Instance Method Details

#present?Boolean

Return true if self is not nil, false otherwise.

This is defined only if it is not yet defined.

Returns:

  • (Boolean)


7
8
9
# File 'lib/betterific/ruby_extensions.rb', line 7

def present?
  !self.nil?
end