Class: ActiveFunction::Functions::Rendering::DoubleRenderError
- Defined in:
- lib/active_function/functions/rendering.rb
Constant Summary collapse
- MESSAGE_TEMPLATE =
"#render was called multiple times in action: %s"
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(context) ⇒ DoubleRenderError
constructor
A new instance of DoubleRenderError.
Constructor Details
#initialize(context) ⇒ DoubleRenderError
Returns a new instance of DoubleRenderError.
33 34 35 |
# File 'lib/active_function/functions/rendering.rb', line 33 def initialize(context) @message = MESSAGE_TEMPLATE % context end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
31 32 33 |
# File 'lib/active_function/functions/rendering.rb', line 31 def @message end |