Class: TrueClass

Inherits:
Object show all
Defined in:
lib/sequel/lib/sequel/extensions/blank.rb,
lib/sequel/lib/sequel/extensions/sql_expr.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

true is never blank


40
41
42
# File 'lib/sequel/lib/sequel/extensions/blank.rb', line 40

def blank?
  false
end

#sql_exprObject

Returns a copy of the object wrapped in a Sequel::SQL::BooleanExpression, allowing easy use of Sequel's DSL:

true.sql_expr | :a  # TRUE OR a

118
119
120
# File 'lib/sequel/lib/sequel/extensions/sql_expr.rb', line 118

def sql_expr
  Sequel::SQL::BooleanExpression.new(:NOOP, self)
end