fr jeff:
In order to do this, obviously you have to look at several lines of
the
file, not just one at a time. After staring at the pickaxe book for
an
hour or so, the best idea I was able to come up with was to read the
whole file into an array using File#readlines. After that, I used
Array#for_each_with_index to zip through the array looking for the end
of the block (being careful to watch out for inner blocks as well).
maybe, if you care to share your code, your ruby friends here may make
it work by reading the file a line at a timeā¦
kind regards -botp