module Rack::WebProfiler::Collector::View::Helpers

Helpers

Public Instance Methods

data(k, default = nil) click to toggle source

@todo comment

# File lib/rack/web_profiler/collector.rb, line 211
def data(k, default = nil)
  return nil if @collection.nil?

  datas = @collection.datas[@collector.identifier.to_sym][:datas]
  return datas[k] if datas.has_key?(k)

  default
end
panel_content() click to toggle source

@todo comment

# File lib/rack/web_profiler/collector.rb, line 202
def panel_content
  if block_given?
    @panel_content ||= capture(&Proc.new)
  elsif !@panel_content.nil?
    @panel_content
  end
end
tab_content() click to toggle source

@todo comment

# File lib/rack/web_profiler/collector.rb, line 193
def tab_content
  if block_given?
    @tab_content ||= capture(&Proc.new)
  elsif !@tab_content.nil?
    @tab_content
  end
end