Module: Rack::Bug::SpeedTrace::Render
- Includes:
- Render
- Included in:
- TraceRecord, Rack::Bug::SpeedTracer
- Defined in:
- lib/rack/bug/speedtracer/render.rb
Instance Method Summary collapse
Instance Method Details
#compiled_source(filename) ⇒ Object
5 6 7 |
# File 'lib/rack/bug/speedtracer/render.rb', line 5 def compiled_source(filename) ::ERB.new(::File.read(::File.dirname(__FILE__) + "/../views/#{filename}.html.erb"), nil, "-").src end |