Module: Alf::Predicate::NadicBool

Defined in:
lib/alf/predicate/nodes/nadic_bool.rb

Instance Method Summary collapse

Instance Method Details

#to_sql(buffer = "") ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'lib/alf/predicate/nodes/nadic_bool.rb', line 5

def to_sql(buffer = "")
  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)
  end
  buffer
end