Class: TrueClass

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

Overview

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

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

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

true.blank?   # => false

Returns:

  • (Boolean)


151
152
153
# File 'lib/reactive_support/core_ext/object/blank.rb', line 151

def blank?
  false
end

#present?Boolean

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

true.present?   # => true

Returns:

  • (Boolean)


159
160
161
# File 'lib/reactive_support/core_ext/object/blank.rb', line 159

def present?
  true 
end