class Rack::WebProfiler::Collector::View
Public Instance Methods
context()
click to toggle source
# File lib/rack/web_profiler/collector.rb, line 174 def context @context ||= Context.new end
read_template(template)
click to toggle source
Read a template. Returns file content if template is a file path.
@param template [String] template file path or content
@return [String]
# File lib/rack/web_profiler/collector.rb, line 183 def read_template(template) unless template.empty? return ::File.read(template) if ::File.exist?(template) end template end