Module: Predicate::Not

Defined in:
lib/bmg/sql/ext/predicate/not.rb

Instance Method Summary collapse

Instance Method Details

#to_sql(buffer, dialect) ⇒ Object



4
5
6
7
8
9
# File 'lib/bmg/sql/ext/predicate/not.rb', line 4

def to_sql(buffer, dialect)
  buffer << Sql::Expr::NOT << Sql::Expr::LEFT_PARENTHESE
  last.to_sql(buffer, dialect)
  buffer << Sql::Expr::RIGHT_PARENTHESE
  buffer
end