Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/sequel/extensions/blank.rb,
lib/sequel/extensions/sql_expr.rb
Instance Method Summary collapse
-
#blank? ⇒ Boolean
Objects are blank if they respond true to empty?.
-
#sql_expr ⇒ Object
Return the object wrapper in an appropriate Sequel expression object.
Instance Method Details
#blank? ⇒ Boolean
Objects are blank if they respond true to empty?
26 27 28 |
# File 'lib/sequel/extensions/blank.rb', line 26 def blank? respond_to?(:empty?) && empty? end |