# File nqxml/tokenizer.rb, line 48 def line return -1 if @inputStack.empty? # only if initialize() arg is bogus input = @inputStack[0] # not @inputStack.last str = input.string[0 .. input.pos] return str.count("\n") + 1 end