bin/lineedit in tefil-0.0.2 vs bin/lineedit in tefil-0.0.3

- old
+ new

@@ -15,11 +15,11 @@ op.on("-s" , "--sort" , "Sort."){ OPTIONS[:sort] = true} op.on("-r" , "--randomize" , "Randomize."){ OPTIONS[:random] = true} op.on("-o" , "--overwrite" , "Overwrite."){ OPTIONS[:overwrite] = true} op.parse!(ARGV) -module TextFilter +module Tefil def self.process_stream(in_io, out_io) in_io.each do |line| if OPTIONS[:sort] out_io.puts line.chomp.split(//).sort.join('') end @@ -32,7 +32,7 @@ OPTIONS[:overwrite] ||= false #pp OPTIONS[:overwrite] -#TextFilter.run(ARGV, OPTIONS[:overwrite]) -TextFilter.run(ARGV, OPTIONS[:overwrite]) +#Tefil.run(ARGV, OPTIONS[:overwrite]) +Tefil.run(ARGV, OPTIONS[:overwrite])