# File link.rb, line 8 def initialize # HARDCODE WARNING - the name of the executable changes if RUBY_PLATFORM =~ /win/i @lg = IO.popen("link41b", "w+") # windows end if RUBY_PLATFORM =~ /linux/i @lg = IO.popen("./parse", "w+") # linux end s = @lg.gets while s !~ /.*4.0.affix/ p s s = @lg.gets end p s @lg.puts("!constituents=2") s = @lg.gets p s end