Method: RDoc::Markdown::Literals#external_invoke
- Defined in:
- lib/rdoc/markdown/literals.rb
#external_invoke(other, rule, *args) ⇒ Object
278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 |
# File 'lib/rdoc/markdown/literals.rb', line 278 def external_invoke(other, rule, *args) old_pos = @pos old_string = @string set_string other.string, other.pos begin if val = __send__(rule, *args) other.pos = @pos other.result = @result else other.set_failed_rule "#{self.class}##{rule}" end val ensure set_string old_string, old_pos end end |