Module: Sinatra::ContentFor2::CurrentTemplateEngine
- Defined in:
- lib/sinatra/content_for2.rb
Instance Attribute Summary collapse
-
#current_template_engine ⇒ Object
readonly
Returns the value of attribute current_template_engine.
Instance Method Summary collapse
-
#render(engine) ⇒ Object
:nodoc:.
Instance Attribute Details
#current_template_engine ⇒ Object (readonly)
Returns the value of attribute current_template_engine.
8 9 10 |
# File 'lib/sinatra/content_for2.rb', line 8 def current_template_engine @current_template_engine end |
Instance Method Details
#render(engine) ⇒ Object
:nodoc:
10 11 12 13 14 15 |
# File 'lib/sinatra/content_for2.rb', line 10 def render(engine, *) #:nodoc: @current_template_engine, engine_was = engine, @current_template_engine output = super @current_template_engine = engine_was output end |