class TrueClass

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

Public Instance Methods

blank?() click to toggle source

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

true.blank?   # => false
    # File lib/reactive_support/core_ext/object/blank.rb
156 def blank?
157   false
158 end
present?() click to toggle source

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

true.present?   # => true
    # File lib/reactive_support/core_ext/object/blank.rb
164 def present?
165   true 
166 end