# File lib/hikidoc.rb, line 892 def until_terminator(re) while line = gets() return if re =~ line # discard terminal line yield line end nil end