Class: Object

Inherits:
BasicObject
Defined in:
lib/object.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/object.rb', line 6

def blank?
  respond_to?(:empty?) ? empty? : !self
end

#present?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/object.rb', line 10

def present?
  !blank?
end

#successful?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/object.rb', line 2

def successful?
  false
end