Class: FalseClass
- Defined in:
- lib/reactive_support/core_ext/object/blank.rb
Overview
Instance Method Summary collapse
-
#blank? ⇒ Boolean
falseis blank by definition; when called onfalse, the#blank?method will returntrue: false.blank? # => true. -
#present? ⇒ Boolean
falseis not present by definition; when called onfalse, the#present?method will returnfalse: false.present? # => false.
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 |