Class: Object

Inherits:
BasicObject
Defined in:
lib/sequel/extensions/blank.rb,
lib/sequel/extensions/sql_expr.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Objects are blank if they respond true to empty?



18
19
20
# File 'lib/sequel/extensions/blank.rb', line 18

def blank?
  respond_to?(:empty?) && empty?
end

#sql_exprObject

Return the object wrapper in an appropriate Sequel expression object.



20
21
22
# File 'lib/sequel/extensions/sql_expr.rb', line 20

def sql_expr
  Sequel[self]
end