Module: Predicate::NadicBool
- Defined in:
- lib/bmg/sql/ext/predicate/nadic_bool.rb
Instance Method Summary collapse
Instance Method Details
#to_sql(buffer, dialect) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/bmg/sql/ext/predicate/nadic_bool.rb', line 4 def to_sql(buffer, dialect) each_with_index do |child, index| next if index == 0 unless index == 1 buffer << Sql::Expr::SPACE << to_sql_operator << Sql::Expr::SPACE end child.to_sql(buffer, dialect) end buffer end |