Methods

Heroku::Nav::Footer

Public Instance Methods

insert!() click to toggle source
# File lib/heroku/nav.rb, line 96
def insert!
  if @nav['html']
    @body.gsub!(/(<head>)/, "\\1<link href='#{self.class.api_url}/footer.css' media='all' rel='stylesheet' type='text/css' />")
    @body.gsub!(/(<\/body>)/, "#{@nav['html']}\\1")
    @headers['Content-Length'] = Rack::Utils.bytesize(@body).to_s
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.