Method: RDoc::Markdown::Literals#grow_lr
- Defined in:
- lib/rdoc/markdown/literals.rb
#grow_lr(rule, args, start_pos, m) ⇒ Object
364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 |
# File 'lib/rdoc/markdown/literals.rb', line 364 def grow_lr(rule, args, start_pos, m) while true @pos = start_pos @result = m.result if args ans = __send__ rule, *args else ans = __send__ rule end return nil unless ans break if @pos <= m.pos m.move! ans, @pos, @result end @result = m.result @pos = m.pos return m.ans end |