Method: RDoc::Parser::Ruby#make_message

Defined in:
lib/rdoc/parser/ruby.rb

#make_message(message) ⇒ Object

Adds useful info about the parser to message



663
664
665
666
667
668
669
670
# File 'lib/rdoc/parser/ruby.rb', line 663

def make_message message
  prefix = "#{@file_name}:".dup

  tk = peek_tk
  prefix << "#{tk[:line_no]}:#{tk[:char_no]}:" if tk

  "#{prefix} #{message}"
end