struct Bool
Overview
Bool has only two possible values: true
and false
. They are constructed using these literals:
true # A Bool that is true
false # A Bool that is false
See Bool
literals in the language reference.
Defined in:
crystal_on_steroids/bool.crcrystal_on_steroids/to_query.cr
Instance Method Summary
Instance methods inherited from class Object
in?(another_object)
in?,
presence
presence,
presence_in(another_object)
presence_in,
present?
present?,
to_param
to_param,
to_query(namespace)to_query to_query
Class methods inherited from class Object
❨╯°□°❩╯︵┻━┻
❨╯°□°❩╯︵┻━┻
Instance Method Detail
def blank?
#
A bool object will be blank if it's false.
true.blank?
=> false
false.blank?
=> true
source: Rails ActiveSupport