bin/rubyc in rubyc-0.0.12 vs bin/rubyc in rubyc-0.0.13
- old
+ new
@@ -30,9 +30,10 @@
end
end
end
class Rubyc < Thor
+ STDOUT.sync
desc :map, "Apply Enumerable#map on each line"
def map(code)
proc = eval( "Proc.new{|line| l = line; #{code}}" )
STDIN.map do |line|
puts proc.call(line.chomp).to_s