Class: NilClass

Inherits:
Object show all
Defined in:
lib/extensions/nil.rb

Instance Method Summary collapse

Instance Method Details

#empty?Boolean Also known as: blank?

Returns:

  • (Boolean)


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

def empty?
  true
end

#include?(o) ⇒ Boolean

Returns:

  • (Boolean)


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

def include?(o)
  false
end

#lengthObject



18
19
20
# File 'lib/extensions/nil.rb', line 18

def length
  0
end

#not_empty?Boolean Also known as: not_blank?

Returns:

  • (Boolean)


14
15
16
# File 'lib/extensions/nil.rb', line 14

def not_empty?
  false
end

#not_nil?Boolean

Returns:

  • (Boolean)


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

def not_nil?
  false
end