Dear Jesús Gabriel y Galán,

It's quite strange. There is such a error message.

To this line,   every_line.each_slice(2).with_index do |(time,signal), 
index| .

split_time_subtract.rb:5:in `write_line_to_file': undefined method 
`each_slice' for #<String:0x9ebe608> (NoMethodError)


The version of ruby is 1.9.1. And I checked 'each_slice' worked well 
like this:

irb(main):001:0> [1,2,3].each_slice(2){|s| p s}
[1, 2]
[3]
=> nil


Any suggestions ?
Thanks a lot in advance!

Junhui
-- 
Posted via http://www.ruby-forum.com/.