Method: RDoc::Markdown::Literals#setup_parser
- Defined in:
- lib/rdoc/markdown/literals.rb
#setup_parser(str, debug = false) ⇒ Object
Prepares for parsing str
. If you define a custom initialize you must call this method before #parse
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rdoc/markdown/literals.rb', line 25 def setup_parser(str, debug=false) set_string str, 0 @memoizations = Hash.new { |h,k| h[k] = {} } @result = nil @failed_rule = nil @failing_rule_offset = -1 @line_offsets = nil setup_foreign_grammar end |