class Heroku::Nav::Internal
Public Class Methods
resource()
click to toggle source
# File lib/heroku/nav.rb, line 106 def self.resource "internal.json" end
Public Instance Methods
insert!()
click to toggle source
# File lib/heroku/nav.rb, line 109 def insert! if @nav['head'] @body.gsub!(/(<head>)/i, "\\1#{@nav['head']}") end if @nav['body'] @body.gsub!(/(<\/body>)/i, "#{@nav['body']}\\1") end @headers['Content-Length'] = Rack::Utils.bytesize(@body).to_s end