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 40 def new_markup(str, remove_para=false) 41 first = @markup.nil? 42 res = old_markup(str, remove_para) 43 if first and not @markup.nil? 44 @markup.add_special(/\b([a-z]\w+(::\w+)*)/,:CROSSREF) 45 # we need to call it again, since we added a rule 46 res = old_markup(str, remove_para) 47 end 48 res 49 end
Also aliased as: markup