Method: RDoc::Markdown::Literals#parse
- Defined in:
- lib/rdoc/markdown/literals.rb
#parse(rule = nil) ⇒ Object
243 244 245 246 247 248 249 250 251 252 253 254 255 |
# File 'lib/rdoc/markdown/literals.rb', line 243 def parse(rule=nil) # We invoke the rules indirectly via apply # instead of by just calling them as methods because # if the rules use left recursion, apply needs to # manage that. if !rule apply(:_root) else method = rule.gsub("-","_hyphen_") apply :"_#{method}" end end |