class NilClass

Public Instance Methods

blank?() click to toggle source

Returns true if invoked on ‘NilClass` instance.

Examples

nil.blank? #=> true
# File core_extensions/nil_class.rb, line 9
def blank?
  true
end
to_b() click to toggle source

Returns false if invoked on NilClass instance.

Examples

nil.to_b #=> false
# File core_extensions/nil_class.rb, line 18
def to_b
  false
end