Method: RDoc::Markdown::Literals#scan

Defined in:
lib/rdoc/markdown/literals.rb

#scan(reg) ⇒ Object



212
213
214
215
216
217
218
219
# File 'lib/rdoc/markdown/literals.rb', line 212

def scan(reg)
  if m = reg.match(@string, @pos)
    @pos = m.end(0)
    return true
  end

  return nil
end