Class | CodeRay::Encoders::HTML::Output::Template |
In: |
lib/coderay/encoders/html/output.rb
|
Parent: | String |
# File lib/coderay/encoders/html/output.rb, line 123 123: def self.wrap! str, template, target 124: target = Regexp.new(Regexp.escape("<%#{target}%>")) 125: if template =~ target 126: str[0,0] = $` 127: str << $' 128: else 129: raise "Template target <%%%p%%> not found" % target 130: end 131: end