blob: ec03c22fe3765bd58bfc208d103a5859e2f961df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require File.join(File.dirname(__FILE__), 'article')
require File.join(File.dirname(__FILE__), 'common')
def process_titles
while true
line = stdin_gets
if line.chomp == START_HEADING
puts stdin_gets.chomp
end
end
rescue EOF
$stderr.puts "Done"
end
if __FILE__ == $0
process_titles
end
|