Sha256: c18aafe2088204e1c51da55f185e05b343f43450be15d109b2a997af26cc892c

Contents?: true

Size: 197 Bytes

Versions: 4

Compression:

Stored size: 197 Bytes

Contents

class Datapipes
  module Basics
    class Print < Sink
      def run(data)
        puts data
      end

      def accept?(data)
        data.is_a? Array and data[0] < 7
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
datapipes-0.0.4 lib/datapipes/basics/print.rb
datapipes-0.0.3 lib/datapipes/basics/print.rb
datapipes-0.0.2 lib/datapipes/basics/print.rb
datapipes-0.0.1 lib/datapipes/basics/print.rb