Sha256: 53071d8ee59c4e69627014af3660c42becfa7334417c5180beeff9d621eba97c

Contents?: true

Size: 556 Bytes

Versions: 5

Compression:

Stored size: 556 Bytes

Contents

module Alf
  module Operator
    module Relational
      class Project
        include Relational, Unary

        signature do |s|
          s.argument :attributes, AttrList, []
          s.option   :allbut,     Boolean,  false, 'Project all but specified attributes?'
        end

        # (see Operator#compile)
        def compile
          op = Engine::Clip.new(operand, attributes, allbut)
          op = Engine::Compact.new(op)
          op
        end

      end # class Project
    end # module Relational
  end # module Operator
end # module Alf

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alf-0.12.2 lib/alf/operator/relational/project.rb
alf-0.12.1 lib/alf/operator/relational/project.rb
alf-0.12.0 lib/alf/operator/relational/project.rb
alf-0.11.1 lib/alf/operator/relational/project.rb
alf-0.11.0 lib/alf/operator/relational/project.rb