Class: NilClass

Inherits:
Object show all
Defined in:
lib/overload/nil.rb,
lib/overload/blank.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/overload/blank.rb', line 19

def blank?
  true
end

#dupObject



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

def dup
  nil
end

#empty?Boolean

Returns:

  • (Boolean)


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

def empty?
  true
end

#present?Boolean

Returns:

  • (Boolean)


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

def present?
  false
end