Module: Padrino::Rendering::InstanceMethods
- Defined in:
- padrino-core/lib/padrino-core/application/rendering.rb
Overview
Instance methods that allow enhanced rendering to function properly in Padrino.
Instance Attribute Summary (collapse)
-
- (Object) current_engine
readonly
Returns the value of attribute current_engine.
Instance Method Summary (collapse)
-
- (Object) content_type(type = nil, params = {})
Get/Set the content_type.
Instance Attribute Details
- (Object) current_engine (readonly)
Returns the value of attribute current_engine
111 112 113 |
# File 'padrino-core/lib/padrino-core/application/rendering.rb', line 111 def current_engine @current_engine end |
Instance Method Details
- (Object) content_type(type = nil, params = {})
Get/Set the content_type
137 138 139 140 141 142 143 |
# File 'padrino-core/lib/padrino-core/application/rendering.rb', line 137 def content_type(type=nil, params={}) unless type.nil? super(type, params) @_content_type = type end @_content_type end |