module Tennpipes::Helpers::OutputHelpers::SinatraCurrentEngine
Module used to detect the current engine in vanilla Sinatra apps.
Attributes
current_engine[R]
Public Instance Methods
render(engine, *)
click to toggle source
Calls superclass method
# File lib/tennpipes-helper/output_helpers.rb, line 31 def render(engine, *) @current_engine, engine_was = engine, @current_engine output = super @current_engine = engine_was output end