Class: FalseClass

Inherits:
Object show all
Defined in:
lib/reactive_support/core_ext/object/blank.rb

Overview

Ruby’s core FalseClass (the singleton class consisting of the false object). See documentation for version 2.1.3, 2.0.0, or 1.9.3.

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

false is blank by definition; when called on false, the #blank? method will return true:

false.blank?    # => true


175
176
177
# File 'lib/reactive_support/core_ext/object/blank.rb', line 175

def blank?
  true
end

#present?Boolean

false is not present by definition; when called on false, the #present? method will return false:

false.present?    # => false


183
184
185
# File 'lib/reactive_support/core_ext/object/blank.rb', line 183

def present? 
  false 
end