Class: FalseClass
- Defined in:
- lib/sequel/extensions/blank.rb,
lib/sequel/extensions/sql_expr.rb
Overview
The blank extension adds the blank? method to all objects (e.g. Object#blank?).
Instance Method Summary collapse
-
#blank? ⇒ Boolean
false is always blank.
-
#sql_expr ⇒ Object
Returns a copy of the object wrapped in a Sequel::SQL::BooleanExpression, allowing easy use of Sequel’s DSL:.
Instance Method Details
#blank? ⇒ Boolean
false is always blank
5 6 7 |
# File 'lib/sequel/extensions/blank.rb', line 5 def blank? true end |
#sql_expr ⇒ Object
Returns a copy of the object wrapped in a Sequel::SQL::BooleanExpression, allowing easy use of Sequel’s DSL:
false.sql_expr & :a # FALSE AND a
52 53 54 |
# File 'lib/sequel/extensions/sql_expr.rb', line 52 def sql_expr Sequel::SQL::BooleanExpression.new(:NOOP, self) end |