Sha256: d8d35568b7c9fff303c0478e4296d0826e51a8e395a547231830335b46c76900

Contents?: true

Size: 531 Bytes

Versions: 2

Compression:

Stored size: 531 Bytes

Contents

module Alf
  module Operator::NonRelational
    class Clip < Alf::Operator()
      include Operator::NonRelational, Operator::Transform
  
      signature do |s|
        s.argument :attributes, AttrList, []
        s.option   :allbut,     Boolean, false, "Apply an allbut clipping?"
      end
      
      protected 
  
      # (see Operator::Transform#_tuple2tuple)
      def _tuple2tuple(tuple)
        @attributes.project(tuple, @allbut)
      end
  
    end # class Clip
  end # module Operator::NonRelational
end # module Alf

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alf-0.10.1 lib/alf/operator/non_relational/clip.rb
alf-0.10.0 lib/alf/operator/non_relational/clip.rb