Sha256: 644cb40a5a178be4e007e69c122361f7cfe56d9c04e59e404de7a80052ffe518

Contents?: true

Size: 359 Bytes

Versions: 5

Compression:

Stored size: 359 Bytes

Contents

module Alf
  class Predicate
    module NadicBool

      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

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-sql-0.16.3 lib/alf/predicate/nodes/nadic_bool.rb
alf-sql-0.16.2 lib/alf/predicate/nodes/nadic_bool.rb
alf-sql-0.16.1 lib/alf/predicate/nodes/nadic_bool.rb
alf-sql-0.16.0 lib/alf/predicate/nodes/nadic_bool.rb
alf-sql-0.15.0 lib/alf/predicate/nodes/nadic_bool.rb