Class: NilClass

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

Overview

class Numeric

Instance Method Summary collapse

Instance Method Details

#blank?TrueClass

Nil is always blank

nil.blank?        #=>  true

Returns:



42
43
44
# File 'lib/extlib/blank.rb', line 42

def blank?
  true
end

#try_dupObject



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

def try_dup
  self
end