Class: TrueClass
- Defined in:
- lib/reactive_support/core_ext/object/blank.rb
Overview
Instance Method Summary collapse
-
#blank? ⇒ Boolean
trueis not blank by definition; when called ontrue, the#blank?method will returnfalse: true.blank? # => false. -
#present? ⇒ Boolean
trueis present by definition; when called ontrue, the#present?method will returntrue: true.present? # => true.
Instance Method Details
#blank? ⇒ Boolean
true is not blank by definition; when called on true, the #blank? method will return false:
true.blank? # => false
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
159 160 161 |
# File 'lib/reactive_support/core_ext/object/blank.rb', line 159 def present? true end |