# File lib/heroku/nav.rb, line 86 def insert! if @nav['html'] @body.gsub!(/(<head>)/, "\\1<link href='#{self.class.api_url}/header.css' media='all' rel='stylesheet' type='text/css' />") @body.gsub!(/(<body.*?>\s*(<div .*?class=["'].*?container.*?["'].*?>)?)/, "\\1#{@nav['html']}") @headers['Content-Length'] = Rack::Utils.bytesize(@body).to_s end end
Generated with the Darkfish Rdoc Generator 2.