Class | CodeRay::Encoders::HTML::Output::Template |
In: |
lib/coderay/encoders/html/output.rb
|
Parent: | String |
# File lib/coderay/encoders/html/output.rb, line 132 132: def self.wrap! str, template, target 133: target = Regexp.new(Regexp.escape("<%#{target}%>")) 134: if template =~ target 135: str[0,0] = $` 136: str << $' 137: else 138: raise "Template target <%%%p%%> not found" % target 139: end 140: end