module Generators::MarkUp
We're monkey patching RDoc
markup to allow lowercase class1::class2::class3 crossref hyperlinking
Public Instance Methods
new_markup(str, remove_para=false)
click to toggle source
# File lib/puppet/util/rdoc/generators/puppet_generator.rb 39 def new_markup(str, remove_para=false) 40 first = @markup.nil? 41 res = old_markup(str, remove_para) 42 if first and not @markup.nil? 43 @markup.add_special(/\b([a-z]\w+(::\w+)*)/,:CROSSREF) 44 # we need to call it again, since we added a rule 45 res = old_markup(str, remove_para) 46 end 47 res 48 end
Also aliased as: markup