examples/dataflow/simple.rb in wukong-3.0.0.pre vs examples/dataflow/simple.rb in wukong-3.0.0.pre2

- old
+ new

@@ -1,12 +1,12 @@ require File.expand_path('../examples_helper', File.dirname(__FILE__)) -ExampleUniverse.dataflow(:simple) do +Wukong.dataflow(:simple) do doc <<-DOC A stupidly simple dataflow: reverses each input string DOC - input :default, file_source(Pathname.path_to(:data, 'text/jabberwocky.txt')) - output :dump, file_sink(Pathname.path_to(:tmp, 'dataflow/simple_output.rb')) + file_source(Pathname.path_to(:data, 'text/jabberwocky.txt')) > + map{|str| str.reverse } > + file_sink(Pathname.path_to(:tmp, 'dataflow/simple_output.rb')) - input(:default) > map{|str| str.reverse } > output(:dump) end