Module: Padrino::Rendering::InstanceMethods
- Defined in:
- padrino-helpers/lib/padrino/rendering.rb
Overview
Instance methods that allow enhanced rendering to function properly in Padrino.
Instance Attribute Summary collapse
-
#current_engine ⇒ Object
readonly
Returns the value of attribute current_engine.
Instance Method Summary collapse
-
#content_type(type = nil, params = {}) ⇒ Object
Get/Set the content_type.
Instance Attribute Details
#current_engine ⇒ Object (readonly)
Returns the value of attribute current_engine.
146 147 148 |
# File 'padrino-helpers/lib/padrino/rendering.rb', line 146 def current_engine @current_engine end |
Instance Method Details
#content_type(type = nil, params = {}) ⇒ Object
Get/Set the content_type
172 173 174 175 176 177 178 |
# File 'padrino-helpers/lib/padrino/rendering.rb', line 172 def content_type(type=nil, params={}) if type super(type, params) @_content_type = type end @_content_type end |