Module: Tennpipes::Rendering::InstanceMethods
- Defined in:
- lib/tennpipes/rendering.rb
Overview
Instance methods that allow enhanced rendering to function properly in Tennpipes.
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.
140 141 142 |
# File 'lib/tennpipes/rendering.rb', line 140 def current_engine @current_engine end |
Instance Method Details
#content_type(type = nil, params = {}) ⇒ Object
Get/Set the content_type
166 167 168 169 170 171 172 |
# File 'lib/tennpipes/rendering.rb', line 166 def content_type(type=nil, params={}) if type super(type, params) @_content_type = type end @_content_type end |