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>)/, "\\1#{@nav['head']}")
  end
  if @nav['body']
    @body.gsub!(/(<\/body>)/, "#{@nav['body']}\\1")
  end
  @headers['Content-Length'] = Rack::Utils.bytesize(@body).to_s
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.