Module: Padrino::Helpers::OutputHelpers::SinatraCurrentEngine
- Defined in:
- lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/output_helpers.rb
Overview
Module used to detect the current engine in vanilla sinatra apps.
Instance Attribute Summary collapse
-
#current_engine ⇒ Object
readonly
Returns the value of attribute current_engine.
Instance Method Summary collapse
Instance Attribute Details
#current_engine ⇒ Object (readonly)
Returns the value of attribute current_engine.
16 17 18 |
# File 'lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/output_helpers.rb', line 16 def current_engine @current_engine end |
Instance Method Details
#render(engine) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/vendored-middleman-deps/padrino-helpers-0.11.2/lib/padrino-helpers/output_helpers.rb', line 18 def render(engine, *) # @private @current_engine, engine_was = engine, @current_engine output = super @current_engine = engine_was output end |