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?

Returns:

  • (Boolean)


26
27
28
# File 'lib/sequel/extensions/blank.rb', line 26

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